li13609254624 2016-10-12 04:12 采纳率: 0%
浏览 2961

请教:maven项目的pom.xml配置文件报错,报错信息如下

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图片说明

  • 写回答

1条回答

  • 冷月凝轩0530 2016-10-12 06:09
    关注

    这是因为maven的plugin并未下载到本地仓库。
    解决办法就是:删除本地仓库中maven-surefire-plugin-2.10.pom.lastUpdated文件(最好所有的.lastUpdated文件都删掉),
    然后右键点击项目->Maven->Update Dependencies重新进行更新就可以了

    评论

报告相同问题?