[ http://jira.codehaus.org/browse/MASSEMBLY-148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Richard van der Hoff updated MASSEMBLY-148: ------------------------------------------- Attachment: massembly-148.zip Here's an integration test for this issue. It works fine for me. Walt, are you still seeing this, and if so, can you modify my testcase to make it fail? > <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: Kenney Westerhof > Fix For: 2.2 > > 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