Failure to transfer org.apache.maven.surefire:surefire:pom:2.10 from http://repo.maven.apache.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. Original error: Could not transfer artifact
org.apache.maven.surefire:surefire:pom:2.10 from/to central (http://repo.maven.apache.org/maven2): connection timed out to http://
repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire/2.10/surefire-2.10.pom
请教:maven项目的pom.xml配置文件报错,报错信息如下
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
1条回答
冷月凝轩0530 2016-10-12 06:09关注这是因为maven的plugin并未下载到本地仓库。
解决办法就是:删除本地仓库中maven-surefire-plugin-2.10.pom.lastUpdated文件(最好所有的.lastUpdated文件都删掉),
然后右键点击项目->Maven->Update Dependencies重新进行更新就可以了解决 无用评论 打赏 举报