You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Bjørn Magnus Mathisen (JIRA)" <ji...@codehaus.org> on 2008/09/19 10:45:49 UTC

[jira] Created: (MASSEMBLY-355) I get duplicate files in my "-jar-with-dependencies.jar"

I get duplicate files in my "-jar-with-dependencies.jar"
--------------------------------------------------------

                 Key: MASSEMBLY-355
                 URL: http://jira.codehaus.org/browse/MASSEMBLY-355
             Project: Maven 2.x Assembly Plugin
          Issue Type: Bug
         Environment: mvn --version
Maven version: 2.0.9
Java version: 1.5.0_13
OS: OSX 10.5.5
            Reporter: Bjørn Magnus Mathisen
         Attachments: testProj.zip

I get duplicate files in my "-jar-with-dependencies.jar"
build with mvn package, then try to unzip the mentioned jar file, it asks if you want to replace,
this also hampers any signing of the jar file..

-- 
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: (MASSEMBLY-355) I get duplicate files in my "-jar-with-dependencies.jar"

Posted by "Alvin Thompson (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=149679#action_149679 ] 

Alvin Thompson commented on MASSEMBLY-355:
------------------------------------------

specifying version 2.1 seems to work properly

> I get duplicate files in my "-jar-with-dependencies.jar"
> --------------------------------------------------------
>
>                 Key: MASSEMBLY-355
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-355
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>         Environment: mvn --version
> Maven version: 2.0.9
> Java version: 1.5.0_13
> OS: OSX 10.5.5
>            Reporter: Bjørn Magnus Mathisen
>         Attachments: testProj.zip, testProj.zip
>
>
> I get duplicate files in my "-jar-with-dependencies.jar"
> build with mvn package, then try to unzip the mentioned jar file, it asks if you want to replace,
> this also hampers any signing of the jar file..

-- 
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] Reopened: (MASSEMBLY-355) I get duplicate files in my "-jar-with-dependencies.jar"

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MASSEMBLY-355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey reopened MASSEMBLY-355:
----------------------------------


wrong resolution

> I get duplicate files in my "-jar-with-dependencies.jar"
> --------------------------------------------------------
>
>                 Key: MASSEMBLY-355
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-355
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>         Environment: mvn --version
> Maven version: 2.0.9
> Java version: 1.5.0_13
> OS: OSX 10.5.5
>            Reporter: Bjørn Magnus Mathisen
>            Assignee: John Casey
>             Fix For: 2.2-beta-3
>
>         Attachments: testProj.zip, testProj.zip
>
>
> I get duplicate files in my "-jar-with-dependencies.jar"
> build with mvn package, then try to unzip the mentioned jar file, it asks if you want to replace,
> this also hampers any signing of the jar file..

-- 
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: (MASSEMBLY-355) I get duplicate files in my "-jar-with-dependencies.jar"

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MASSEMBLY-355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey closed MASSEMBLY-355.
--------------------------------

         Assignee: John Casey
       Resolution: Fixed
    Fix Version/s: 2.2-beta-3

See MASSEMBLY-285

> I get duplicate files in my "-jar-with-dependencies.jar"
> --------------------------------------------------------
>
>                 Key: MASSEMBLY-355
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-355
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>         Environment: mvn --version
> Maven version: 2.0.9
> Java version: 1.5.0_13
> OS: OSX 10.5.5
>            Reporter: Bjørn Magnus Mathisen
>            Assignee: John Casey
>             Fix For: 2.2-beta-3
>
>         Attachments: testProj.zip, testProj.zip
>
>
> I get duplicate files in my "-jar-with-dependencies.jar"
> build with mvn package, then try to unzip the mentioned jar file, it asks if you want to replace,
> this also hampers any signing of the jar file..

-- 
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: (MASSEMBLY-355) I get duplicate files in my "-jar-with-dependencies.jar"

Posted by "Reto Hoehener (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=189100#action_189100 ] 

Reto Hoehener commented on MASSEMBLY-355:
-----------------------------------------

Hi, I am still getting getting duplicate class files in my jar with dependencies with version 2.2-beta-4. I am not getting duplicates when specifying version 2.1 (as noted above).

Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.6.0_12
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

> I get duplicate files in my "-jar-with-dependencies.jar"
> --------------------------------------------------------
>
>                 Key: MASSEMBLY-355
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-355
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>         Environment: mvn --version
> Maven version: 2.0.9
> Java version: 1.5.0_13
> OS: OSX 10.5.5
>            Reporter: Bjørn Magnus Mathisen
>            Assignee: John Casey
>             Fix For: 2.2-beta-3
>
>         Attachments: testProj.zip, testProj.zip
>
>
> I get duplicate files in my "-jar-with-dependencies.jar"
> build with mvn package, then try to unzip the mentioned jar file, it asks if you want to replace,
> this also hampers any signing of the jar file..

-- 
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: (MASSEMBLY-355) I get duplicate files in my "-jar-with-dependencies.jar"

Posted by "Alvin Thompson (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=149802#action_149802 ] 

Alvin Thompson commented on MASSEMBLY-355:
------------------------------------------

this is not the same problem as MASSEMBLY-285.  even if 285 fixes the symptom, it doesn't address the root cause.  IMHO this should be reopened.

> I get duplicate files in my "-jar-with-dependencies.jar"
> --------------------------------------------------------
>
>                 Key: MASSEMBLY-355
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-355
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>         Environment: mvn --version
> Maven version: 2.0.9
> Java version: 1.5.0_13
> OS: OSX 10.5.5
>            Reporter: Bjørn Magnus Mathisen
>            Assignee: John Casey
>             Fix For: 2.2-beta-3
>
>         Attachments: testProj.zip, testProj.zip
>
>
> I get duplicate files in my "-jar-with-dependencies.jar"
> build with mvn package, then try to unzip the mentioned jar file, it asks if you want to replace,
> this also hampers any signing of the jar file..

-- 
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: (MASSEMBLY-355) I get duplicate files in my "-jar-with-dependencies.jar"

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MASSEMBLY-355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann updated MASSEMBLY-355:
----------------------------------------

    Attachment: testProj.zip

A trimmed down version of the original test project where the {{<dependencies>}} section has been removed. The assmbled JAR still contains two instances of the entry "aoc3/App.class".

> I get duplicate files in my "-jar-with-dependencies.jar"
> --------------------------------------------------------
>
>                 Key: MASSEMBLY-355
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-355
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>         Environment: mvn --version
> Maven version: 2.0.9
> Java version: 1.5.0_13
> OS: OSX 10.5.5
>            Reporter: Bjørn Magnus Mathisen
>         Attachments: testProj.zip, testProj.zip
>
>
> I get duplicate files in my "-jar-with-dependencies.jar"
> build with mvn package, then try to unzip the mentioned jar file, it asks if you want to replace,
> this also hampers any signing of the jar file..

-- 
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: (MASSEMBLY-355) I get duplicate files in my "-jar-with-dependencies.jar"

Posted by "Andreas Münstermann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=200260#action_200260 ] 

Andreas Münstermann commented on MASSEMBLY-355:
-----------------------------------------------

Hi,

I had the same problem and then tried it with the version 2.1. This version works fine and does not create duplicate files.

> I get duplicate files in my "-jar-with-dependencies.jar"
> --------------------------------------------------------
>
>                 Key: MASSEMBLY-355
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-355
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>         Environment: mvn --version
> Maven version: 2.0.9
> Java version: 1.5.0_13
> OS: OSX 10.5.5
>            Reporter: Bjørn Magnus Mathisen
>            Assignee: John Casey
>             Fix For: 2.2-beta-3
>
>         Attachments: testProj.zip, testProj.zip
>
>
> I get duplicate files in my "-jar-with-dependencies.jar"
> build with mvn package, then try to unzip the mentioned jar file, it asks if you want to replace,
> this also hampers any signing of the jar file..

-- 
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: (MASSEMBLY-355) I get duplicate files in my "-jar-with-dependencies.jar"

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MASSEMBLY-355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey closed MASSEMBLY-355.
--------------------------------

    Resolution: Duplicate

> I get duplicate files in my "-jar-with-dependencies.jar"
> --------------------------------------------------------
>
>                 Key: MASSEMBLY-355
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-355
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>         Environment: mvn --version
> Maven version: 2.0.9
> Java version: 1.5.0_13
> OS: OSX 10.5.5
>            Reporter: Bjørn Magnus Mathisen
>            Assignee: John Casey
>             Fix For: 2.2-beta-3
>
>         Attachments: testProj.zip, testProj.zip
>
>
> I get duplicate files in my "-jar-with-dependencies.jar"
> build with mvn package, then try to unzip the mentioned jar file, it asks if you want to replace,
> this also hampers any signing of the jar file..

-- 
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: (MASSEMBLY-355) I get duplicate files in my "-jar-with-dependencies.jar"

Posted by "Bjørn Magnus Mathisen (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=148490#action_148490 ] 

Bjørn Magnus Mathisen commented on MASSEMBLY-355:
-------------------------------------------------

if you add 	<version>2.2-beta-3-SNAPSHOT</version>
to the assembly plugin, the behaviour changes, the second copy of every class file is then
prefixed with the entire filesystem path (i.e. Users/epic/Documents/git/aoc/aocClient/target/classes/), this avoids the duplicate problem
and I can now manage to sign the jar, but it can't be claimed to be a good solution...

> I get duplicate files in my "-jar-with-dependencies.jar"
> --------------------------------------------------------
>
>                 Key: MASSEMBLY-355
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-355
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>         Environment: mvn --version
> Maven version: 2.0.9
> Java version: 1.5.0_13
> OS: OSX 10.5.5
>            Reporter: Bjørn Magnus Mathisen
>         Attachments: testProj.zip, testProj.zip
>
>
> I get duplicate files in my "-jar-with-dependencies.jar"
> build with mvn package, then try to unzip the mentioned jar file, it asks if you want to replace,
> this also hampers any signing of the jar file..

-- 
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: (MASSEMBLY-355) I get duplicate files in my "-jar-with-dependencies.jar"

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MASSEMBLY-355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann updated MASSEMBLY-355:
----------------------------------------

    Affects Version/s: 2.2-beta-2

> I get duplicate files in my "-jar-with-dependencies.jar"
> --------------------------------------------------------
>
>                 Key: MASSEMBLY-355
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-355
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>         Environment: mvn --version
> Maven version: 2.0.9
> Java version: 1.5.0_13
> OS: OSX 10.5.5
>            Reporter: Bjørn Magnus Mathisen
>         Attachments: testProj.zip
>
>
> I get duplicate files in my "-jar-with-dependencies.jar"
> build with mvn package, then try to unzip the mentioned jar file, it asks if you want to replace,
> this also hampers any signing of the jar file..

-- 
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