You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Joerg Schaible (JIRA)" <ji...@codehaus.org> on 2009/12/11 08:41:55 UTC

[jira] Created: (MDEP-245) goal to check classpath for duplicate resources/classes

goal to check classpath for duplicate resources/classes
-------------------------------------------------------

                 Key: MDEP-245
                 URL: http://jira.codehaus.org/browse/MDEP-245
             Project: Maven 2.x Dependency Plugin
          Issue Type: New Feature
            Reporter: Joerg Schaible
            Assignee: Brian Fox
            Priority: Minor


The classpath sometimes contains unintended duplicate resources and classes e.g.:
# an artifact is present in two different versions at the same time, because it changed its groupId or artifactId, but no relocation POM has been provided by the artifact's author
# an artifact has been split into several artifacts (avalon-famework => avalon-framework-api and avalon-framework-impl)
# an artifact has a collection of "foreign" classes (CGLIB 2.x contains stuff from ASM 1.5)

A new goal of the dependency plugin might detect such cases. Obviously there are cases, when this is expected (stax-api implements stuff provided also by JDK 6) or cannot be avoided in general (even xpp3_min contains two classes from xmlpull-api) or is even part of the spec (SPI files in META-INF/services).

-- 
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: (MDEP-245) goal to check classpath for duplicate resources/classes

Posted by "Mirko Friedenhagen (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=202391#action_202391 ] 

Mirko Friedenhagen commented on MDEP-245:
-----------------------------------------

Just a link to the discussion: http://old.nabble.com/Maven-Plugin-to-detect-duplicate-class-files-in-a-e.g.-WAR-ts26658458.html

> goal to check classpath for duplicate resources/classes
> -------------------------------------------------------
>
>                 Key: MDEP-245
>                 URL: http://jira.codehaus.org/browse/MDEP-245
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: New Feature
>            Reporter: Joerg Schaible
>            Assignee: Brian Fox
>            Priority: Minor
>
> The classpath sometimes contains unintended duplicate resources and classes e.g.:
> # an artifact is present in two different versions at the same time, because it changed its groupId or artifactId, but no relocation POM has been provided by the artifact's author
> # an artifact has been split into several artifacts (avalon-famework => avalon-framework-api and avalon-framework-impl)
> # an artifact has a collection of "foreign" classes (CGLIB 2.x contains stuff from ASM 1.5)
> A new goal of the dependency plugin might detect such cases. Obviously there are cases, when this is expected (stax-api implements stuff provided also by JDK 6) or cannot be avoided in general (even xpp3_min contains two classes from xmlpull-api) or is even part of the spec (SPI files in META-INF/services).

-- 
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: (MDEP-245) goal to check classpath for duplicate resources/classes

Posted by "luke w patterson (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=214007#action_214007 ] 

luke w patterson commented on MDEP-245:
---------------------------------------

One option for now is JBoss' Tattletale tool:  http://www.jboss.org/tattletale  

an example of its use: http://insuchaworld.blogspot.com/2010/03/using-jboss-tattletale-tool-in-maven.html

> goal to check classpath for duplicate resources/classes
> -------------------------------------------------------
>
>                 Key: MDEP-245
>                 URL: http://jira.codehaus.org/browse/MDEP-245
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: New Feature
>            Reporter: Joerg Schaible
>            Assignee: Brian Fox
>            Priority: Minor
>
> The classpath sometimes contains unintended duplicate resources and classes e.g.:
> # an artifact is present in two different versions at the same time, because it changed its groupId or artifactId, but no relocation POM has been provided by the artifact's author
> # an artifact has been split into several artifacts (avalon-famework => avalon-framework-api and avalon-framework-impl)
> # an artifact has a collection of "foreign" classes (CGLIB 2.x contains stuff from ASM 1.5)
> A new goal of the dependency plugin might detect such cases. Obviously there are cases, when this is expected (stax-api implements stuff provided also by JDK 6) or cannot be avoided in general (even xpp3_min contains two classes from xmlpull-api) or is even part of the spec (SPI files in META-INF/services).

-- 
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] (MDEP-245) goal to check classpath for duplicate resources/classes

Posted by "Robert Scholte (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MDEP-245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte closed MDEP-245.
-------------------------------

    Resolution: Won't Fix
      Assignee: Robert Scholte  (was: Brian Fox)

This is a typical example of an enforcer-rule, which has already been written.

[maven-enforcer-plugin|http://maven.apache.org/plugins/maven-enforcer-plugin/]
[banDuplicateClasses rule|http://mojo.codehaus.org/extra-enforcer-rules/banDuplicateClasses.html]

                
> goal to check classpath for duplicate resources/classes
> -------------------------------------------------------
>
>                 Key: MDEP-245
>                 URL: https://jira.codehaus.org/browse/MDEP-245
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: New Feature
>            Reporter: Joerg Schaible
>            Assignee: Robert Scholte
>            Priority: Minor
>
> The classpath sometimes contains unintended duplicate resources and classes e.g.:
> # an artifact is present in two different versions at the same time, because it changed its groupId or artifactId, but no relocation POM has been provided by the artifact's author
> # an artifact has been split into several artifacts (avalon-famework => avalon-framework-api and avalon-framework-impl)
> # an artifact has a collection of "foreign" classes (CGLIB 2.x contains stuff from ASM 1.5)
> A new goal of the dependency plugin might detect such cases. Obviously there are cases, when this is expected (stax-api implements stuff provided also by JDK 6) or cannot be avoided in general (even xpp3_min contains two classes from xmlpull-api) or is even part of the spec (SPI files in META-INF/services).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira