You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Soraya Sanchez (JIRA)" <ji...@codehaus.org> on 2009/03/18 19:14:12 UTC
[jira] Created: (MASSEMBLY-399) jar-with-dependencies descriptor
adding files twice
jar-with-dependencies descriptor adding files twice
---------------------------------------------------
Key: MASSEMBLY-399
URL: http://jira.codehaus.org/browse/MASSEMBLY-399
Project: Maven 2.x Assembly Plugin
Issue Type: Bug
Affects Versions: 2.2-beta-3
Environment: windows xp
maven 2.0.7
Reporter: Soraya Sanchez
When generating a .jar with the project dependencies, files are being added twice to the jar (but in a location related to the absolute location).
When the plugin configuration is as follows:
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-3</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>attached</goal>
</goals>
</execution>
</executions>
</plugin>
The generated jar is:
+ the-jar
+ com
+ ...
+ TheClass.class
+ C:
+ workspace
+ ...
+ TheClass.class
that is, the files are being properly added from the project but, the C: folder should not exist (it contains, once more, the files located under com)
If using the plugin version 2.2-beta-2 the files are included twice as well but, the following way:
+ the-jar
+ com
+ TheClass.class
+ TheClass.class
whereas, if using version is 2.2-beta-1 the file is being generated properly (no duplicate files at all).
--
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] (MASSEMBLY-399) jar-with-dependencies descriptor adding
files twice
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MASSEMBLY-399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg closed MASSEMBLY-399.
-------------------------------------
Resolution: Fixed
Fix Version/s: 2.2-beta-5
> jar-with-dependencies descriptor adding files twice
> ---------------------------------------------------
>
> Key: MASSEMBLY-399
> URL: https://jira.codehaus.org/browse/MASSEMBLY-399
> Project: Maven 2.x Assembly Plugin
> Issue Type: Bug
> Affects Versions: 2.2-beta-3
> Environment: windows xp
> maven 2.0.7
> Reporter: Soraya Sanchez
> Assignee: John Casey
> Fix For: 2.2-beta-5
>
>
> When generating a .jar with the project dependencies, files are being added twice to the jar (but in a location related to the absolute location).
> When the plugin configuration is as follows:
> {code:xml}
> <plugin>
> <artifactId>maven-assembly-plugin</artifactId>
> <version>2.2-beta-3</version>
> <configuration>
> <descriptorRefs>
> <descriptorRef>jar-with-dependencies</descriptorRef>
> </descriptorRefs>
> <archive>
> <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
> </archive>
> </configuration>
> <executions>
> <execution>
> <phase>package</phase>
> <goals>
> <goal>attached</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> {code}
> The generated jar is:
> {noformat}
> + the-jar
> + com
> + ...
> + TheClass.class
> + C:
> + workspace
> + ...
> + TheClass.class
> {noformat}
> that is, the files are being properly added from the project but, the C: folder should not exist (it contains, once more, the files located under com)
> If using the plugin version 2.2-beta-2 the files are included twice as well but, the following way:
> {noformat}
> + the-jar
> + com
> + TheClass.class
> + TheClass.class
> {noformat}
> whereas, if using version is 2.2-beta-1 the file is being generated properly (no duplicate files at all).
--
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
[jira] Closed: (MASSEMBLY-399) jar-with-dependencies descriptor
adding files twice
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MASSEMBLY-399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Casey closed MASSEMBLY-399.
--------------------------------
Resolution: Won't Fix
Fix Version/s: 2.2-beta-6
Assignee: John Casey
you can configure the assembly plugin to produce manifests in the same manner as the jar plugin:
http://maven.apache.org/shared/maven-archiver/examples/manifestFile.html
http://maven.apache.org/plugins/maven-jar-plugin/examples/default-manifest-file.html
http://maven.apache.org/plugins/maven-jar-plugin/examples/manifest-customization.html
> jar-with-dependencies descriptor adding files twice
> ---------------------------------------------------
>
> Key: MASSEMBLY-399
> URL: http://jira.codehaus.org/browse/MASSEMBLY-399
> Project: Maven 2.x Assembly Plugin
> Issue Type: Bug
> Affects Versions: 2.2-beta-3
> Environment: windows xp
> maven 2.0.7
> Reporter: Soraya Sanchez
> Assignee: John Casey
> Fix For: 2.2-beta-6
>
>
> When generating a .jar with the project dependencies, files are being added twice to the jar (but in a location related to the absolute location).
> When the plugin configuration is as follows:
> <plugin>
> <artifactId>maven-assembly-plugin</artifactId>
> <version>2.2-beta-3</version>
> <configuration>
> <descriptorRefs>
> <descriptorRef>jar-with-dependencies</descriptorRef>
> </descriptorRefs>
> <archive>
> <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
> </archive>
> </configuration>
> <executions>
> <execution>
> <phase>package</phase>
> <goals>
> <goal>attached</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> The generated jar is:
> + the-jar
> + com
> + ...
> + TheClass.class
> + C:
> + workspace
> + ...
> + TheClass.class
> that is, the files are being properly added from the project but, the C: folder should not exist (it contains, once more, the files located under com)
> If using the plugin version 2.2-beta-2 the files are included twice as well but, the following way:
> + the-jar
> + com
> + TheClass.class
> + TheClass.class
> whereas, if using version is 2.2-beta-1 the file is being generated properly (no duplicate files at all).
--
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-399) jar-with-dependencies descriptor
adding files twice
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MASSEMBLY-399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Casey updated MASSEMBLY-399:
---------------------------------
Fix Version/s: (was: 2.2-beta-6)
2.3-beta-1
We need to verify that this is still happening after 2.2-beta-6 is released. I don't have the infrastructure here to debug it otherwise.
> jar-with-dependencies descriptor adding files twice
> ---------------------------------------------------
>
> Key: MASSEMBLY-399
> URL: http://jira.codehaus.org/browse/MASSEMBLY-399
> Project: Maven 2.x Assembly Plugin
> Issue Type: Bug
> Affects Versions: 2.2-beta-3
> Environment: windows xp
> maven 2.0.7
> Reporter: Soraya Sanchez
> Assignee: John Casey
> Fix For: 2.3-beta-1
>
>
> When generating a .jar with the project dependencies, files are being added twice to the jar (but in a location related to the absolute location).
> When the plugin configuration is as follows:
> <plugin>
> <artifactId>maven-assembly-plugin</artifactId>
> <version>2.2-beta-3</version>
> <configuration>
> <descriptorRefs>
> <descriptorRef>jar-with-dependencies</descriptorRef>
> </descriptorRefs>
> <archive>
> <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
> </archive>
> </configuration>
> <executions>
> <execution>
> <phase>package</phase>
> <goals>
> <goal>attached</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> The generated jar is:
> + the-jar
> + com
> + ...
> + TheClass.class
> + C:
> + workspace
> + ...
> + TheClass.class
> that is, the files are being properly added from the project but, the C: folder should not exist (it contains, once more, the files located under com)
> If using the plugin version 2.2-beta-2 the files are included twice as well but, the following way:
> + the-jar
> + com
> + TheClass.class
> + TheClass.class
> whereas, if using version is 2.2-beta-1 the file is being generated properly (no duplicate files at all).
--
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-399) jar-with-dependencies descriptor
adding files twice
Posted by "Benson Margulies (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MASSEMBLY-399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benson Margulies updated MASSEMBLY-399:
---------------------------------------
Fix Version/s: (was: 2.3)
> jar-with-dependencies descriptor adding files twice
> ---------------------------------------------------
>
> Key: MASSEMBLY-399
> URL: https://jira.codehaus.org/browse/MASSEMBLY-399
> Project: Maven 2.x Assembly Plugin
> Issue Type: Bug
> Affects Versions: 2.2-beta-3
> Environment: windows xp
> maven 2.0.7
> Reporter: Soraya Sanchez
> Assignee: John Casey
>
> When generating a .jar with the project dependencies, files are being added twice to the jar (but in a location related to the absolute location).
> When the plugin configuration is as follows:
> <plugin>
> <artifactId>maven-assembly-plugin</artifactId>
> <version>2.2-beta-3</version>
> <configuration>
> <descriptorRefs>
> <descriptorRef>jar-with-dependencies</descriptorRef>
> </descriptorRefs>
> <archive>
> <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
> </archive>
> </configuration>
> <executions>
> <execution>
> <phase>package</phase>
> <goals>
> <goal>attached</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> The generated jar is:
> + the-jar
> + com
> + ...
> + TheClass.class
> + C:
> + workspace
> + ...
> + TheClass.class
> that is, the files are being properly added from the project but, the C: folder should not exist (it contains, once more, the files located under com)
> If using the plugin version 2.2-beta-2 the files are included twice as well but, the following way:
> + the-jar
> + com
> + TheClass.class
> + TheClass.class
> whereas, if using version is 2.2-beta-1 the file is being generated properly (no duplicate files at all).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Reopened: (MASSEMBLY-399) jar-with-dependencies descriptor
adding files twice
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MASSEMBLY-399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Casey reopened MASSEMBLY-399:
----------------------------------
wrong issue, sorry
> jar-with-dependencies descriptor adding files twice
> ---------------------------------------------------
>
> Key: MASSEMBLY-399
> URL: http://jira.codehaus.org/browse/MASSEMBLY-399
> Project: Maven 2.x Assembly Plugin
> Issue Type: Bug
> Affects Versions: 2.2-beta-3
> Environment: windows xp
> maven 2.0.7
> Reporter: Soraya Sanchez
> Assignee: John Casey
> Fix For: 2.2-beta-6
>
>
> When generating a .jar with the project dependencies, files are being added twice to the jar (but in a location related to the absolute location).
> When the plugin configuration is as follows:
> <plugin>
> <artifactId>maven-assembly-plugin</artifactId>
> <version>2.2-beta-3</version>
> <configuration>
> <descriptorRefs>
> <descriptorRef>jar-with-dependencies</descriptorRef>
> </descriptorRefs>
> <archive>
> <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
> </archive>
> </configuration>
> <executions>
> <execution>
> <phase>package</phase>
> <goals>
> <goal>attached</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> The generated jar is:
> + the-jar
> + com
> + ...
> + TheClass.class
> + C:
> + workspace
> + ...
> + TheClass.class
> that is, the files are being properly added from the project but, the C: folder should not exist (it contains, once more, the files located under com)
> If using the plugin version 2.2-beta-2 the files are included twice as well but, the following way:
> + the-jar
> + com
> + TheClass.class
> + TheClass.class
> whereas, if using version is 2.2-beta-1 the file is being generated properly (no duplicate files at all).
--
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] (MASSEMBLY-399) jar-with-dependencies descriptor adding
files twice
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MASSEMBLY-399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg updated MASSEMBLY-399:
--------------------------------------
Description:
When generating a .jar with the project dependencies, files are being added twice to the jar (but in a location related to the absolute location).
When the plugin configuration is as follows:
{code:xml}
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-3</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>attached</goal>
</goals>
</execution>
</executions>
</plugin>
{code}
The generated jar is:
{noformat}
+ the-jar
+ com
+ ...
+ TheClass.class
+ C:
+ workspace
+ ...
+ TheClass.class
{noformat}
that is, the files are being properly added from the project but, the C: folder should not exist (it contains, once more, the files located under com)
If using the plugin version 2.2-beta-2 the files are included twice as well but, the following way:
{noformat}
+ the-jar
+ com
+ TheClass.class
+ TheClass.class
{noformat}
whereas, if using version is 2.2-beta-1 the file is being generated properly (no duplicate files at all).
was:
When generating a .jar with the project dependencies, files are being added twice to the jar (but in a location related to the absolute location).
When the plugin configuration is as follows:
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-3</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>attached</goal>
</goals>
</execution>
</executions>
</plugin>
The generated jar is:
+ the-jar
+ com
+ ...
+ TheClass.class
+ C:
+ workspace
+ ...
+ TheClass.class
that is, the files are being properly added from the project but, the C: folder should not exist (it contains, once more, the files located under com)
If using the plugin version 2.2-beta-2 the files are included twice as well but, the following way:
+ the-jar
+ com
+ TheClass.class
+ TheClass.class
whereas, if using version is 2.2-beta-1 the file is being generated properly (no duplicate files at all).
> jar-with-dependencies descriptor adding files twice
> ---------------------------------------------------
>
> Key: MASSEMBLY-399
> URL: https://jira.codehaus.org/browse/MASSEMBLY-399
> Project: Maven 2.x Assembly Plugin
> Issue Type: Bug
> Affects Versions: 2.2-beta-3
> Environment: windows xp
> maven 2.0.7
> Reporter: Soraya Sanchez
> Assignee: John Casey
>
> When generating a .jar with the project dependencies, files are being added twice to the jar (but in a location related to the absolute location).
> When the plugin configuration is as follows:
> {code:xml}
> <plugin>
> <artifactId>maven-assembly-plugin</artifactId>
> <version>2.2-beta-3</version>
> <configuration>
> <descriptorRefs>
> <descriptorRef>jar-with-dependencies</descriptorRef>
> </descriptorRefs>
> <archive>
> <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
> </archive>
> </configuration>
> <executions>
> <execution>
> <phase>package</phase>
> <goals>
> <goal>attached</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> {code}
> The generated jar is:
> {noformat}
> + the-jar
> + com
> + ...
> + TheClass.class
> + C:
> + workspace
> + ...
> + TheClass.class
> {noformat}
> that is, the files are being properly added from the project but, the C: folder should not exist (it contains, once more, the files located under com)
> If using the plugin version 2.2-beta-2 the files are included twice as well but, the following way:
> {noformat}
> + the-jar
> + com
> + TheClass.class
> + TheClass.class
> {noformat}
> whereas, if using version is 2.2-beta-1 the file is being generated properly (no duplicate files at all).
--
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
[jira] Commented: (MASSEMBLY-399) jar-with-dependencies descriptor
adding files twice
Posted by "Taciano Tres (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MASSEMBLY-399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=191849#action_191849 ]
Taciano Tres commented on MASSEMBLY-399:
----------------------------------------
I'm seeing this issue also. Workarounds?
> jar-with-dependencies descriptor adding files twice
> ---------------------------------------------------
>
> Key: MASSEMBLY-399
> URL: http://jira.codehaus.org/browse/MASSEMBLY-399
> Project: Maven 2.x Assembly Plugin
> Issue Type: Bug
> Affects Versions: 2.2-beta-3
> Environment: windows xp
> maven 2.0.7
> Reporter: Soraya Sanchez
>
> When generating a .jar with the project dependencies, files are being added twice to the jar (but in a location related to the absolute location).
> When the plugin configuration is as follows:
> <plugin>
> <artifactId>maven-assembly-plugin</artifactId>
> <version>2.2-beta-3</version>
> <configuration>
> <descriptorRefs>
> <descriptorRef>jar-with-dependencies</descriptorRef>
> </descriptorRefs>
> <archive>
> <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
> </archive>
> </configuration>
> <executions>
> <execution>
> <phase>package</phase>
> <goals>
> <goal>attached</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> The generated jar is:
> + the-jar
> + com
> + ...
> + TheClass.class
> + C:
> + workspace
> + ...
> + TheClass.class
> that is, the files are being properly added from the project but, the C: folder should not exist (it contains, once more, the files located under com)
> If using the plugin version 2.2-beta-2 the files are included twice as well but, the following way:
> + the-jar
> + com
> + TheClass.class
> + TheClass.class
> whereas, if using version is 2.2-beta-1 the file is being generated properly (no duplicate files at all).
--
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