You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "John Casey (JIRA)" <ji...@codehaus.org> on 2007/03/28 23:21:34 UTC

[jira] Closed: (MASSEMBLY-148) cannot handle files with same name in different directories. First file copied to all destinations.

     [ http://jira.codehaus.org/browse/MASSEMBLY-148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey closed MASSEMBLY-148.
--------------------------------

         Assignee: John Casey  (was: Kenney Westerhof)
       Resolution: Fixed
    Fix Version/s:     (was: 2.2)
                   2.2-beta-1

assigning to 2.2-beta-1, since the only action I've taken on this is to apply the patch containing the integration test that verified it.

> <files> cannot handle files with same name in different directories.  First file copied to all destinations.
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: MASSEMBLY-148
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-148
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: Window XP, j2sdk1.4.2_09
>            Reporter: Walt Barrow
>         Assigned To: John Casey
>             Fix For: 2.2-beta-1
>
>         Attachments: massembly-148.zip
>
>
> Using an assembly descriptor with the following <files> element:
>   <files>
>     <file>
>       <source>configuration\pentaho.war\WEB-INF\jboss-web.xml</source>
>       <outputDirectory>jboss\server\default\deploy\pentaho.war\WEB-INF</outputDirectory>
>       <filtered>true</filtered>
>     </file>
>     <file>
>       <source>configuration\jboss-portal.sar\portal-server.war\WEB-INF\jboss-web.xml</source>
>       <outputDirectory>jboss\server\default\deploy\jboss-portal.sar\portal-server.war\WEB-INF</outputDirectory>
>       <destName>jboss-web.xml</destName>
>       <filtered>true</filtered>
>     </file>
>   </files>
> ... the resulting assembly contains two identical copies of jboss-web.xml in both target locations and both are identical to the first one specified.  It is as if the same file (the first one) is copied to both locations.  If I rename one of the files, then, of course, everything works fine.
> The pom.xml I used looks like:
> <project>
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>pentaho</groupId>
>   <artifactId>afscnPentahoApp</artifactId>
>   <name>AFSCN Multiproject POM</name>
>   <version>1.0</version>
>   <packaging>pom</packaging>
>   <modules>
>     <module>components</module>
>     <module>portlets-jar</module>
>     <module>portlets-war</module>
>   </modules>
>   <build>
>     <filters>
>       <filter>c:/PentahoSource/filters/config.properties</filter>
>     </filters>
>     <plugins>
>       <plugin>
>         <artifactId>maven-assembly-plugin</artifactId>
>         <configuration>
>           <descriptor>solution.xml</descriptor>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>
> </project>
> ... and the directory structure looks like:
> Top-Level
> -- configuration
> ---- configuration\jboss-portal.sar\portal-server.war\WEB-INF\jboss-web.xml

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