You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Reinhard Poetz <re...@apache.org> on 2006/03/01 17:15:20 UTC

[MECLIPSE] Duplicate entries in .classpath and .project

I have a pom.xml, which declares following dependencies:

<dependency>
   <groupId>com.mycompany</groupId>
   <artifactId>app-framework</artifactId>
   <version>1.0-SNAPSHOT</version>
   <type>jar</type>
</dependency>
<dependency>
   <groupId>com.mycompany</groupId>
   <artifactId>app-framework</artifactId>
   <version>1.0-SNAPSHOT</version>
   <type>test-jar</type>
   <scope>test</scope>
</dependency>

This creates an invalid .project for Eclipse as the artifactId is used as 
project name. As the artifactId is not a unique identifier, following XML is 
created:

<projectDescription>
   <name>webapp</name>
   <comment/>
   <projects>
     <project>app-framework</project>
     <project>app-framework</project>
   </projects>
</projectDescription>

This, of course, leads to an error in Eclipse.

Additionally, .classpath also contains duplicate entries in this case.

I've createda an entry in JIRA (http://jira.codehaus.org/browse/MECLIPSE-70) 
that also contains a patch that fixes both problems.

I would be glad, if somebody could review it :-)

-- 
Reinhard Pötz           Independent Consultant, Trainer & (IT)-Coach 

{Software Engineering, Open Source, Web Applications, Apache Cocoon}

                                        web(log): http://www.poetz.cc
--------------------------------------------------------------------

	

	
		
___________________________________________________________ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org