Maven库打包解决方案:No plugin found for prefix ‘install’ in the current project and in the plgin groups

问题描述:

我的外部本地包,需要打包到我的maven库里。然后报错如下:

No plugin found for prefix ‘install’ in the current project and in the plgin groups

在这里插入图片描述

解决方案:

找到你的maven安装位置找到conf文件,然后把你的配置复制到settings.xml里,因为我的配置文件都是setting-xx.xml,maven默认找的是settings.xml,所以导致我外部本地包向maven库打包报错了
在这里插入图片描述

然后在重新打包:

打包命令:

mvn install:install-file -Dpackaging=jar –Dfile=F:\xxjarFile\xxx.jar(jar包位置) -DgroupId=组名 -DartifactId=com.xxx.xxx(定义包名) -Dversion=1.0-SNAPSHOT(版本号)

在这里插入图片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章