Maven pom.xml error in eclipse

I get below errors 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
+4
source share
1 answer
  • Go to the directory {Home}/.m2/repository/org/apache.
  • Delete folder maven.
  • Right-click on the Maven project in Eclipse and select Maven -> Update Project ...
  • In the dialog that appears, select Force Update of Snapshots/Releasesand click OK

Make sure that when updating the project you have no problems with the proxy server.

+8
source

Source: https://habr.com/ru/post/1529860/


All Articles