[ https://jira.codehaus.org/browse/MASSEMBLY-285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=284982#comment-284982 ]
Chad McHenry commented on MASSEMBLY-285: ---------------------------------------- This is still an issue in maven-assembly-plugin-2.2.2. (i) The maven-shade-plugin (mentioned in [jar-with-dependencies|http://maven.apache.org/plugins/maven-assembly-plugin/descriptor-refs.html#jar-with-dependencies] pre-defined descriptor) can create standalone (uber) jars and does not duplicate files. {code:xml}<!-- Shade can create a standalone jar --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>1.5</version> <executions> <execution> <phase>package</phase> <goals><goal>shade</goal></goals> <configuration> <transformers> <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> <mainClass>${mainClass}</mainClass> </transformer> </transformers> <shadedArtifactAttached>true</shadedArtifactAttached> <shadedClassifierName>standalone</shadedClassifierName> </configuration> </execution> </executions> </plugin> {code} > regression: duplicate files added to the assembly > ------------------------------------------------- > > Key: MASSEMBLY-285 > URL: https://jira.codehaus.org/browse/MASSEMBLY-285 > Project: Maven 2.x Assembly Plugin > Issue Type: Bug > Affects Versions: 2.2-beta-1 > Reporter: Brett Porter > Assignee: John Casey > Priority: Blocker > Fix For: 2.2-beta-3 > > > I found that it was possible to add a file twice to the assembly through > different filesets (a zip file) so that when it extracted it prompted for > overwrite. > It should error out or collapse the entries (as 2.1 did). -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira