Thursday, June 02, 2011

Error getting POM for org.apache.maven.plugins:maven-eclipse-plugin

From time to time I need to get back to this error
Reason: Error getting POM for 'org.apache.maven.plugins:maven-eclipse-plugin' from the repository: Failed to resolve artifact, possibly due to a repository list that is not appropriately equipped for this artifact's metadata.

As it happens with other maven dependencies their pom.xml file gets somehow modified and the plugin does not work as expected anymore.

The solution here is to navigate to your local repository, delete the dependency and try to download it again. If it still fails (clearly a pom.xml that has not been corrected) then you need to edit the metadata file. In my case:

You will notice the "latest node", for example:
<?xml version="1.0" encoding="UTF-8"?>

Just remove the "latest" node or edit it to reflect the version you want to use (probably a previous stable version) and problem solved


lucky said...

Thanks. Now it is working.

anonymous said...

You could also try mvn parameter -U
mvn -U eclipse:eclipse

Jonathan said...

This article helped me - thanks.

Andre Kurniawan said...

This post helped me, Thank you .. :)

Unknown said...

Thanks. This worked for me