Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
2.4
-
None
-
None
Description
For the given multi module project:
project
- pom.xml has modules: sub1 and sub2
- sub1/
- pom.xml
- target/
- sub1-1.0.jar
- sub1-1.0-alt.jar
- sub2/
- pom.xml
- depends on: sub1-1.0.jar and sub1-1.0-alt.jar
When running "mvn eclipse:eclipse" at the root of project/, in sub2/.classpath, the classpathentry for sub1 will be generated for each artifact produced by sub1 that sub2 depends on:
<classpath>
<classpathentry kind="src" path="/sub1"/>
<classpathentry kind="src" path="/sub1"/>
</classpath>
Eclipse therefore complains about a duplicate classpathentry.
A workaround is to manually remove the duplicate project from the Java Build Path.
Kind regards,
Cédric Vidal