Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse does not recognize existing resolved Maven dependencies

I have m2 plugin in Ecplipse 3.8.0 and a project that has maven dependencies inside. Local .m2 folder has the correct version of the dependency, pom.xml looks correctly but Dependencies tab when opening the pom.xml in Eclipse tells "Failed to read artifact descriptor.." error. Also I get missing artifact error on the Problems section on Eclipse.

Where does the m2-plugin or Eclipse read those dependencies, if they show up correctly on pom.xml and the correcponding jar is at .m2 folder?

like image 360
mico Avatar asked Feb 11 '13 07:02

mico


People also ask

How do I fix missing Maven dependencies in Eclipse?

You can find this in Window > Preferences > Maven > User Settings , and then point Global Settings to your external maven settings. xml . Then i removed the broken projects and re-added them, and the Maven Dependencies library appeared again. Save this answer.


1 Answers

Eclipse produces quite a lot of problems when it comes to M2. What I do to get rid of this problems is to clean the project(Project > Clean...), use an external maven (Window > Preferences > Installations > ...) for building purposes and from the maven settings of a project I Update Project configuration (Right click on the project > Maven > Update project ...).

Hope this helps.

like image 107
Olimpiu POP Avatar answered Oct 10 '22 21:10

Olimpiu POP