you can fix this in the maven-eclipse-plugin config

On Oct 20, 2010, at 9:20 AM, Dan Haywood <[email protected]> wrote:

> I have a better solution; when importing into m2eclipse, specify the "name 
> template" to include the groupId:artifactId.
>
> Here's how:
> 1. File > Import
> 2. On the next dialog, Maven > Existing Maven Projects
> 3. On the next dialog
> a) open up advanced, and for name template, select "[groupId].[artifactId]"
> b) specify root directory
> c) refresh
> d) import
>
> If you prefer to use mvn eclipse:eclipse to generate the .project/.classpath, 
> then it is (see [1]):
>
> mvn eclipse:eclipse -Declipse.projectNameTemplate="[groupId].[artifactId]"
>
>
> I'll add that configuration to the root POM.
>
> Make sense?
> Dan
>
> [1] 
> http://docs.codehaus.org/display/GEOT/2.5.8+Maven+Eclipse+Plugin+Goals#2.5.8MavenEclipsePluginGoals-CustomizingtheNameoftheGeneratedProjects
>
>
> On 20/10/2010 14:13, Robert Matthews wrote:
>> Dan
>>
>> Our naming policy has caused a problem in Eclipse where multiple project 
>> with same name (eg progmodel) cannot be accommodated by it.  We have three 
>> POMs with the same artifcact ID, two of which are Java/jar modules (the 
>> other is  POM and doesn't seem to affect things). The eclipse plugin uses 
>> the artifact name for the Eclipse project name and therefore ends up with 
>> two projects with the same name.
>>
>> Ideally we should change one of the module's artifact ID.
>>
>> Rob
>>

Reply via email to