You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "nicolas de loof (JIRA)" <ji...@codehaus.org> on 2008/03/07 12:30:28 UTC

[jira] Created: (MECLIPSE-397) Eclipse project set as dependency + test-jar dependency i sincluded twice in .classpath

Eclipse project set as dependency + test-jar dependency i sincluded twice in .classpath
---------------------------------------------------------------------------------------

                 Key: MECLIPSE-397
                 URL: http://jira.codehaus.org/browse/MECLIPSE-397
             Project: Maven 2.x Eclipse Plugin
          Issue Type: Bug
          Components: Core : Workspace settings
    Affects Versions: 2.5
         Environment: maven 2.0.8, eclipse plugin version 2.5-20080218.113139-24
            Reporter: nicolas de loof


My maven project depends on A-util.jar for compile and A-util-tests.jar for tests :

<dependency>
      <groupId>...
      <artifactId>A-util</artifactId>
      <version>...
</dependency>

<dependency>
      <groupId>...
      <artifactId>A-util</artifactId>
      <version>...
      <type>test-jar</type>
      <scope>test</scope>
</dependency>

I have the "A-util" project in my eclipse workspace

Running mvn eclipse:eclipse creates an invalid .classpath where the eclipse A project is included twice :

  <classpathentry kind="src" path="/A-util"/>
  <classpathentry kind="src" path="/A-util"/>



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MECLIPSE-397) Eclipse project set as dependency + test-jar dependency is included twice in .classpath

Posted by "nicolas de loof (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MECLIPSE-397?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

nicolas de loof closed MECLIPSE-397.
------------------------------------

         Assignee: nicolas de loof
       Resolution: Fixed
    Fix Version/s: 2.5.2

The issue comes from the anti-duplicates ID :                 

String depId = dep.getGroupId() + ":" + dep.getArtifactId() + ":" + dep.getClassifier() + ":" + dep.getVersion();

For dependencies referenced as eclipse project, the same ID must be generated for any classifier / version.


Also applied the anti-duplicate principle to .project writer.

> Eclipse project set as dependency + test-jar dependency is included twice in .classpath
> ---------------------------------------------------------------------------------------
>
>                 Key: MECLIPSE-397
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-397
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Bug
>          Components: Core : Workspace settings
>    Affects Versions: 2.5
>         Environment: maven 2.0.8, eclipse plugin version 2.5-20080218.113139-24
>            Reporter: nicolas de loof
>            Assignee: nicolas de loof
>             Fix For: 2.5.2
>
>
> My maven project depends on A-util.jar for compile and A-util-tests.jar for tests :
> <dependency>
>       <groupId>...
>       <artifactId>A-util</artifactId>
>       <version>...
> </dependency>
> <dependency>
>       <groupId>...
>       <artifactId>A-util</artifactId>
>       <version>...
>       <type>test-jar</type>
>       <scope>test</scope>
> </dependency>
> I have the "A-util" project in my eclipse workspace
> Running mvn eclipse:eclipse creates an invalid .classpath where the eclipse A project is included twice :
>   <classpathentry kind="src" path="/A-util"/>
>   <classpathentry kind="src" path="/A-util"/>
> .. and invalid .project with twice references :
>     <project>A-util</project>
>     <project>A-util</project>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MECLIPSE-397) Eclipse project set as dependency + test-jar dependency is included twice in .classpath

Posted by "nicolas de loof (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MECLIPSE-397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=135512#action_135512 ] 

nicolas de loof commented on MECLIPSE-397:
------------------------------------------

fixed in 2.5.2-20080520.120258-2

> Eclipse project set as dependency + test-jar dependency is included twice in .classpath
> ---------------------------------------------------------------------------------------
>
>                 Key: MECLIPSE-397
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-397
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Bug
>          Components: Core : Workspace settings
>    Affects Versions: 2.5
>         Environment: maven 2.0.8, eclipse plugin version 2.5-20080218.113139-24
>            Reporter: nicolas de loof
>            Assignee: nicolas de loof
>             Fix For: 2.5.2
>
>
> My maven project depends on A-util.jar for compile and A-util-tests.jar for tests :
> <dependency>
>       <groupId>...
>       <artifactId>A-util</artifactId>
>       <version>...
> </dependency>
> <dependency>
>       <groupId>...
>       <artifactId>A-util</artifactId>
>       <version>...
>       <type>test-jar</type>
>       <scope>test</scope>
> </dependency>
> I have the "A-util" project in my eclipse workspace
> Running mvn eclipse:eclipse creates an invalid .classpath where the eclipse A project is included twice :
>   <classpathentry kind="src" path="/A-util"/>
>   <classpathentry kind="src" path="/A-util"/>
> .. and invalid .project with twice references :
>     <project>A-util</project>
>     <project>A-util</project>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MECLIPSE-397) Eclipse project set as dependency + test-jar dependency is included twice in .classpath

Posted by "nicolas de loof (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MECLIPSE-397?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

nicolas de loof updated MECLIPSE-397:
-------------------------------------

    Summary: Eclipse project set as dependency + test-jar dependency is included twice in .classpath  (was: Eclipse project set as dependency + test-jar dependency i sincluded twice in .classpath)

> Eclipse project set as dependency + test-jar dependency is included twice in .classpath
> ---------------------------------------------------------------------------------------
>
>                 Key: MECLIPSE-397
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-397
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Bug
>          Components: Core : Workspace settings
>    Affects Versions: 2.5
>         Environment: maven 2.0.8, eclipse plugin version 2.5-20080218.113139-24
>            Reporter: nicolas de loof
>
> My maven project depends on A-util.jar for compile and A-util-tests.jar for tests :
> <dependency>
>       <groupId>...
>       <artifactId>A-util</artifactId>
>       <version>...
> </dependency>
> <dependency>
>       <groupId>...
>       <artifactId>A-util</artifactId>
>       <version>...
>       <type>test-jar</type>
>       <scope>test</scope>
> </dependency>
> I have the "A-util" project in my eclipse workspace
> Running mvn eclipse:eclipse creates an invalid .classpath where the eclipse A project is included twice :
>   <classpathentry kind="src" path="/A-util"/>
>   <classpathentry kind="src" path="/A-util"/>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MECLIPSE-397) Eclipse project set as dependency + test-jar dependency is included twice in .classpath

Posted by "nicolas de loof (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MECLIPSE-397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_126450 ] 

nicolas de loof commented on MECLIPSE-397:
------------------------------------------

Issue is a little more complex.

When eclipse .classpath make reference to project A-util, it only includes default build directory (target/classes), so will never include the target/test-classes that matches the A-util-tests.jar.

I don't know if this is possible to specify build directory in target project in the .classpath XML format. The UI editor doesn't provides this option.

> Eclipse project set as dependency + test-jar dependency is included twice in .classpath
> ---------------------------------------------------------------------------------------
>
>                 Key: MECLIPSE-397
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-397
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Bug
>          Components: Core : Workspace settings
>    Affects Versions: 2.5
>         Environment: maven 2.0.8, eclipse plugin version 2.5-20080218.113139-24
>            Reporter: nicolas de loof
>
> My maven project depends on A-util.jar for compile and A-util-tests.jar for tests :
> <dependency>
>       <groupId>...
>       <artifactId>A-util</artifactId>
>       <version>...
> </dependency>
> <dependency>
>       <groupId>...
>       <artifactId>A-util</artifactId>
>       <version>...
>       <type>test-jar</type>
>       <scope>test</scope>
> </dependency>
> I have the "A-util" project in my eclipse workspace
> Running mvn eclipse:eclipse creates an invalid .classpath where the eclipse A project is included twice :
>   <classpathentry kind="src" path="/A-util"/>
>   <classpathentry kind="src" path="/A-util"/>
> .. and invalid .project with twice references :
>     <project>A-util</project>
>     <project>A-util</project>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MECLIPSE-397) Eclipse project set as dependency + test-jar dependency is included twice in .classpath

Posted by "nicolas de loof (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MECLIPSE-397?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

nicolas de loof updated MECLIPSE-397:
-------------------------------------

    Description: 
My maven project depends on A-util.jar for compile and A-util-tests.jar for tests :

<dependency>
      <groupId>...
      <artifactId>A-util</artifactId>
      <version>...
</dependency>

<dependency>
      <groupId>...
      <artifactId>A-util</artifactId>
      <version>...
      <type>test-jar</type>
      <scope>test</scope>
</dependency>

I have the "A-util" project in my eclipse workspace

Running mvn eclipse:eclipse creates an invalid .classpath where the eclipse A project is included twice :

  <classpathentry kind="src" path="/A-util"/>
  <classpathentry kind="src" path="/A-util"/>

.. and invalid .project with twice references :

    <project>A-util</project>
    <project>A-util</project>



  was:
My maven project depends on A-util.jar for compile and A-util-tests.jar for tests :

<dependency>
      <groupId>...
      <artifactId>A-util</artifactId>
      <version>...
</dependency>

<dependency>
      <groupId>...
      <artifactId>A-util</artifactId>
      <version>...
      <type>test-jar</type>
      <scope>test</scope>
</dependency>

I have the "A-util" project in my eclipse workspace

Running mvn eclipse:eclipse creates an invalid .classpath where the eclipse A project is included twice :

  <classpathentry kind="src" path="/A-util"/>
  <classpathentry kind="src" path="/A-util"/>




> Eclipse project set as dependency + test-jar dependency is included twice in .classpath
> ---------------------------------------------------------------------------------------
>
>                 Key: MECLIPSE-397
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-397
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Bug
>          Components: Core : Workspace settings
>    Affects Versions: 2.5
>         Environment: maven 2.0.8, eclipse plugin version 2.5-20080218.113139-24
>            Reporter: nicolas de loof
>
> My maven project depends on A-util.jar for compile and A-util-tests.jar for tests :
> <dependency>
>       <groupId>...
>       <artifactId>A-util</artifactId>
>       <version>...
> </dependency>
> <dependency>
>       <groupId>...
>       <artifactId>A-util</artifactId>
>       <version>...
>       <type>test-jar</type>
>       <scope>test</scope>
> </dependency>
> I have the "A-util" project in my eclipse workspace
> Running mvn eclipse:eclipse creates an invalid .classpath where the eclipse A project is included twice :
>   <classpathentry kind="src" path="/A-util"/>
>   <classpathentry kind="src" path="/A-util"/>
> .. and invalid .project with twice references :
>     <project>A-util</project>
>     <project>A-util</project>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira