You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Richard van der Hoff (JIRA)" <ji...@codehaus.org> on 2007/03/26 22:40:36 UTC
[jira] Commented: (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:comment-tabpanel#action_91087 ]
Richard van der Hoff commented on MASSEMBLY-148:
------------------------------------------------
oh, i've just repeated it with assembly-2.1. I think we can assume this is fixed in 2.2.
> <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