lundi 11 mai 2015

Wrong .classpath generated for multimodule project by maven-eclipse-plugin

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.

Aucun commentaire:

Enregistrer un commentaire