[ https://jira.codehaus.org/browse/MASSEMBLY-478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kristian Rosenvold updated MASSEMBLY-478: ----------------------------------------- Fix Version/s: 2.5.2 > allow overwriting newer files with older files contained within fileset > ----------------------------------------------------------------------- > > Key: MASSEMBLY-478 > URL: https://jira.codehaus.org/browse/MASSEMBLY-478 > Project: Maven Assembly Plugin > Issue Type: Bug > Affects Versions: 2.2-beta-2 > Environment: mvn -version > Apache Maven 2.2.1 (r801777; 2009-08-06 13:16:01-0600) > Java version: 1.6.0_17 > Java home: /usr/lib/jvm/java-6-sun-1.6.0.17/jre > Default locale: en_US, platform encoding: UTF-8 > OS name: "linux" version: "2.6.29-bpo.2-amd64" arch: "amd64" Family: "unix" > Reporter: deckrider > Fix For: 2.5.2 > > > I have a situation where I want to unwind a zip file, and then overlay a few > files in it with my own. > I've been using the maven dependency plugin to unwind this zip file and then > maven assembly plugin to overwrite a few of the extracted files with my own > (generally text based configuration that I keep under source code control). > This seems to work until my files have an earlier modification time than the > files that I want to overwrite, in which case my own files do NOT overwite > the others (I want my files to ALWAYS replace those in the zip file). > Thank in advance. Here are the configuration details > From my pom.xml: > {code:xml} > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-assembly-plugin</artifactId> > <configuration> > <appendAssemblyId>false</appendAssemblyId> > <attach>false</attach> > <outputDirectory>${project.build.directory}</outputDirectory> > <finalName>solaris</finalName> > <ignoreDirFormatExtensions>true</ignoreDirFormatExtensions> > <descriptors> > <descriptor>src/main/assembly/bin.xml</descriptor> > </descriptors> > </configuration> > <executions> > <execution> > <id>overwrite</id> > <phase>process-sources</phase> > <goals> > <goal>directory-single</goal> > </goals> > </execution> > </executions> > </plugin> > {code} > From my src/main/assembly/bin.xml: > {code:xml} > <assembly> > <formats> > <format>dir</format> > </formats> > <includeBaseDirectory>false</includeBaseDirectory> > <fileSets> > <fileSet> > <directory>${basedir}/src/main/bin</directory> > <outputDirectory>${prefix}/jboss/bin</outputDirectory> > </fileSet> > <fileSet> > <directory>${basedir}/src/main/conf</directory> > <outputDirectory>${prefix}/jboss/server/wsa/conf</outputDirectory> > </fileSet> > <fileSet> > <directory>${basedir}/src/main/deploy</directory> > <outputDirectory>${prefix}/jboss/server/wsa/deploy</outputDirectory> > </fileSet> > </fileSets> > </assembly> > {code} -- This message was sent by Atlassian JIRA (v6.1.6#6162)