Hi,
Hi,
Eclipse can't seem to handle two modules in the same workspace that have the
same artifactId. For example if I have a multi-module
project (groupId:artifact) as below:

  - carworld:carworld
     - carworld:ferrari
     - carworld.ferrari:car
        - carworld:porsche
     - carworld.porsche:car

There are two modules that have <artifactId>car</artifactId> (but different groupId's). m2Eclipse+Eclipse appears to use the artifactId as the project identifier and when the two "car" projects are imported only one is actually
imported.

Is this a known issue? are there any workarounds?


Give your projects different names.

We're not going to support duplicate artifactIds in the reactor. You can't have two artifacts with the same coordinate and expect it to work.

Name your projects properly.
I always thought Maven artifacts are uniquely identified by { groupId , artifactId , version } - how come two artifacts with same artifact IDs but *different* group IDs have "the same coordinate" ?

@op: At work we're using some Perl script magic along with the maven-eclipse-plugin to automatically generate/update .classpath /.project files. The plugin has a <addGroupIdToProjectName>/ option that might solve your problem (haven't tried it myself but I'm afraid you would have to disable m2eclipse for the project to make this work). Changing one of the conflicting projects to use a different artifactId might be way easier (assuming you don't have released these artifacts to the "public" / clients).

Regards,

Tobias

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to