Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pom.xml error in Eclipse

I have created a web project , and when i right click the project->configure->maven project, I get this error in 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

like image 500
Sathesh Balakrishnan Manohar Avatar asked Jan 31 '26 08:01

Sathesh Balakrishnan Manohar


1 Answers

1 Goto the directory {Home}/.m2/repository/org/apache.

2 Delete the maven folder. then click the project->configure->maven project

To be more sure:- Right click on your Maven project in Eclipse and select Maven -> Update Project...

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.

like image 186
Sakib Hasan Avatar answered Feb 01 '26 21:02

Sakib Hasan