Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven pom.xml error in eclipse [duplicate]

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
like image 617
Deepesh Uniyal Avatar asked Mar 03 '14 18:03

Deepesh Uniyal


People also ask

What is POM XML in Eclipse?

What is a POM? A Project Object Model or POM is the fundamental unit of work in Maven. It is an XML file that contains information about the project and configuration details used by Maven to build the project. It contains default values for most projects.

How do I create a missing dependency in Maven?

My problem solved by right click on project -> Maven -> Update project. Then the Maven Dependencies appear on the project explore. Save this answer.


1 Answers

  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.

like image 108
Gobinath Avatar answered Sep 22 '22 23:09

Gobinath