I created a multi-module project using Indigo with m2e 1.0. One of the child modules has a dependency on the other. All this builds correctly under maven.
Eclipse, however, cannot find any of the classes that this module uses from the .jar dependency. Project properties show an artifact in Maven Dependencies, but it does not display the actual .jar file.
I added a dependency from the Maven menu for this project.
.project and .classpath are automatically generated at some point. I did not need to run mvn eclipse: eclipse or mvn eclipse: m2e (or whatever the target for m2e was). There is no .jar dependent in .classpath, but it has org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER.
I tried all the options in the Maven menu (updates for updates, configuring updates) and updated the project. I closed and reopened Eclipse. It still shows errors.
This makes Eclipse worthless as a Java editor in multi-module projects. I could manually add the .jar dependency to the .classpath, but that defeats the goal of integrating Eclipse and Maven with m2e.
Is there any solution for this in Eclipse?
Thank.
source
share