Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.2-beta-3
-
Fix Version/s: 2.2-beta-5
-
Component/s: None
-
Labels:None
-
Environment:windows xp
maven 2.0.7
-
Number of attachments :
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:
<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).
Issue Links
- relates to
-
MASSEMBLY-285
regression: duplicate files added to the assembly
-
I'm seeing this issue also. Workarounds?