MAVEN 运行mvn help:system出错以及在用户目录下不能创建.m2文件的问题

[ERROR] No plugin found for prefix ‘help’ in the current project and in the plug 
in groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repos 
itories [local (C:\xxx\maven\repo), central (https://repo.maven.apache.org/ 
maven2)] -> [Help 1]

出现以上错误时,大概率是网络的问题,不能连接到外网,所以下载不到所需文件报错;只需通过一些方式连到外网即可。

MVN help:system 命令运行正确,在用户目录下没有 .m2文件,只需删除config文件夹下的setting.xml文件下的:

<localRepository>D:\maven\repository</localRepository>

即可解决问题。

猜你喜欢

转载自blog.csdn.net/hemiaolin8393/article/details/81417377
今日推荐