My project has the following structure:
/ProjectRoot
/ProjectRoot/A
/ProjectRoot/B
/ProjectRoot/C
ProjectRoot is a multimodule project. Project A should create war and it has dependencies to projects B and C delared in its pom. When I run maven eclipse:eclipse on ProjectRoot it results in incorrect .classpath file created for project A.
<classpath>
<classpathentry kind="src" path="/B"/>
<classpathentry kind="src" path="/C"/>
</classpath>
This stops the build in eclipse. Problems tabs displays:
Project 'A' is missing required Java project: 'B'
Project 'A' is missing required Java project: 'C'
The project cannot be built until build path errors are resolved
I know I can fix this problem manually(Properties/Build path/Projects remove the missing ones and then add them once again) but I would like to have the correct settings generated automatically by maven-eclipse-plugin.
Edit: The problem might have something to do with the fact that directory names and artifactIds of the submodules are not equal, i.e. project that is stored in directory B has artifactId "B-Big-Project"