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?
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With