Maven pom.xml error in eclipse [duplicate]

别来无恙 提交于 2019-12-20 10:57:12

问题


I am getting below error in the first line of my pom.xml

Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 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.plugins:maven-surefire-plugin:pom:2.12.4 from/to central (http://repo.maven.apache.org/maven2): repo.maven.apache.org

回答1:


  1. Goto the directory {Home}/.m2/repository/org/apache.
  2. Delete the maven folder.
  3. Right click on your Maven project in Eclipse and select Maven -> Update Project...
  4. In the appeared dialog, select the Force Update of Snapshots/Releases and click OK

Make sure that, you do not have any proxy related problems when updating the project again.



来源:https://stackoverflow.com/questions/22154022/maven-pom-xml-error-in-eclipse

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!