您的位置:首页 > 运维架构 > Apache

maven项目pom.xml报错: Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 from

2014-04-23 15:55 841 查看
maven项目pom.xml报错:

Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced

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

打开maven的本地库...\repository\org\apache\maven\plugins\maven-surefire-plugin\2.10会发现:里面少只有一个maven-surefire-plugin-2.10.pom.lastUpdated,而没有maven-surefire-plugin-2.10.jar

解决方法: 

1.删除maven-surefire-plugin-2.7.1.pom.lastUpdated文件

2.右键点击project -> Maven - Update Dependencies
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  java maven
相关文章推荐