学无先后,达者为师

网站首页 编程语言 正文

maven在cmd中执行install报错

作者:花小疯 更新时间: 2022-10-29 编程语言

报错内容:

No plugin fond for prefix 'install' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositoreis [local <C:\Users\xxx\.m2\repository>, central <https://repo.maven.apache.org.maven2>] -> [Help 1]

原因:maven默认找的是settings.xml,由于我的配置文件是settings-xx.xml,maven的conf文件夹里没有settings.xml文件,所以导致我外部本地包向maven库打包报错了

解决方案:将我得 settings-xx.xml 文件重命名为 settings.xml 后,再次执行命令,就成功了

原文链接:https://blog.csdn.net/dd2016124/article/details/127014064

栏目分类
最近更新