Thursday, September 20, 2012

Annoying 'Maven Dependency Management' error in Eclipse

I had this come up several times in Eclipse. When I try to convert an existing project to Maven project (going through Right Click on Project -> Configure -> Convert to Maven Project), every once in a while I get this error:

The solution is actually quite simple. Right Click on Project -> Maven -> Disable Maven Nature. Now, open up a command line in the folder with your .pom file for the project and run the following command:
mvn eclipse:clean
After it finishes, go back and repeat steps for converting project to Maven.

No comments:

Post a Comment