[ 
http://jira.codehaus.org/browse/MASSEMBLY-285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=144961#action_144961
 ] 

gotama commented on MASSEMBLY-285:
----------------------------------


Until this is fixed, here is an example work around, if you are interested (the 
modules parent is a default jboss-assembly module - the child module inherits 
the src and config of the default jboss-assembly):

pom.xml:

<plugins>

            <!-- generate resources. merge default and current configurations. 
-->
            <plugin>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>generate-resources</phase>
                        <configuration>
                            <tasks>
                                <copy 
todir="${project.build.directory}/generated-resources/"
                                      preservelastmodified="true" 
verbose="true" overwrite="true">
                                    <fileset 
dir="${basedir}/../jboss-assembly/src/main/config/"/>
                                </copy>
                                <copy 
todir="${project.build.directory}/generated-resources/"
                                      preservelastmodified="true" 
verbose="true" overwrite="true">
                                    <fileset dir="${basedir}/src/main/config/"/>
                                </copy>
                            </tasks>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

<-- maven assembly plugin -->
</plugins>

> regression: duplicate files added to the assembly
> -------------------------------------------------
>
>                 Key: MASSEMBLY-285
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-285
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-1
>            Reporter: Brett Porter
>            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.
-
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

        

Reply via email to