maven的pom报plugins错误

来源:互联网 发布:win8安装不了软件 编辑:程序博客网 时间:2024/06/07 03:02

maven的pom报plugins错误的解决方法

Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 from http://maven.aliyun.com/ nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the  update interval of alimaven has elapsed or updates are forced. Original error: Could not transfer artifact  org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 from/to alimaven (http://maven.aliyun.com/nexus/ content/groups/public/): maven.aliyun.com: 域名解析暂时失败

原因是maven的plugin并未下载到本地.
查看:

~\.m2\repository\org\apache\maven\plugins\maven-surefire-plugin\2.12.4

解决:
1.删除所有以lastUpdated结尾的文件
2.右键点击project -> Maven - Update Dependencies(Update Project…)

阅读全文
0 0
原创粉丝点击