36 articles and counting
      

Eclipse Maven Plugin not Resolving Project Dependencies

Eclipse: Galileo 3.5
Plugin: Maven2

I have several projects in Eclipse all dependency managed by Maven. The dependencies are correctly declared in the POM’s but there is 1 project that will not resolve the projects it depends on. Expanding the Maven Dependencies node in the Eclipse Project Explorer does not list the projects declared in the om, althoughall external libraries seem to be resolved ok.

I discovered that in the .classpath file I had this in the offending POM:

<classpathentry kind=”con” path=”org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER/modules”>

whereas in the other project .classpath file sit is declared as:

<classpathentry kind=”con” path=”org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER”>

I removed the ‘/modules’ string and Disabled Dependencies and then Enabled Dependencies in the Maven plugin for the project and now the projectas are resolved.