Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2-beta-2
-
None
-
None
Description
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:
<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>
From my src/main/assembly/bin.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>
Attachments
Issue Links
- depends upon
-
MASSEMBLY-725 Fix phase ordering
- Closed