Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
2.2.2
-
None
-
None
-
None
Description
I am trying to create a zip file for use in an intermediate process. I then use that zip file to include in an installer. I then need it to zip up the installer file to use as an artifact for other builds. I use the plug in once in the compile step, and then once in the packaging step. The problem is that the one in the packaging step seems to use the configuration settings from the compile step even though they are redefined. Am I using the plug-in the wrong way? I just need a way to build a zip to be used later in the same build project.
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <configuration> <finalName>${file1.name}</finalName> <descriptors> <descriptor>${file1.name}-assembly.xml</descriptor> </descriptors> </configuration> <executions> <execution> <id>make-${file1.name}-assembly</id> <phase>compile</phase> <goals> <goal>single</goal> </goals> </execution> </executions> </plugin> <!-- build the installer --> ... <plugin> <!-- Zip up the relevant build artifacts --> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <configuration> <finalName>${file2.name}</finalName> <descriptors> <descriptor>${file2.name}-assembly.xml</descriptor> </descriptors> </configuration> <executions> <execution> <id>make-${file2.name}-assembly</id> <phase>package</phase> <goals> <goal>single</goal> </goals> </execution> </executions> </plugin>