I’m trying to use this Sonatype Eclipse plugin for the first time to handle an existing (huge) software that I can build with maven form the command line.
I have configured the plugin to use my maven 2.2.1 installation instead of the built-in Maven 3.
In Eclipse I have 25 projects (loaded through the root pom.xml) and 4 of them have compilation errors; the maven console contains a lot of lines like this one:
Missing artifact commons-logging:commons-logging:jar:1.0.4:compile
I have all the jars in my repository and the M2_REPO classpath variable correctly defined. Why the plugin doesn’t see all the jars?
The .classpath file of those projects simply references “MAVEN2_CLASSPATH_CONTAINER”, there isn’t a list of the jars.
The pom.xml in Eclipse shows an error on the first line for the missing jars but I can build from the command line!
Any idea? I need help! I will try to move to NetBeans if I don’t solve this problem.
Thank you.
I finally found a workaround. It is surely a bug in m2eclipse, however the problem disappeared when I added
quartz-1.6.0.pomnext toquartz-1.6.0.jarin.m2\repository\opensymphony\quartz\1.6.0\The pom is not present at http://repo1.maven.org/maven2/opensymphony/quartz/1.6.0/ but you can extract it from
quartz-1.6.0-bundle.jarlinket at http://jira.opensymphony.com/browse/QUARTZ-482It’s a strange solution but it worked on the PCs of my collegues too.