Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0
-
None
-
None
Description
A plugin configuration like this does not work:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>dependency-maven-plugin</artifactId>
<executions>
<execution>
<id>generate-resources-apphome</id>
<phase>generate-resources</phase>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.example</groupId>
<artifactId>MyProject</artifactId>
<version>5.0-SNAPSHOT</version>
<classifier>someFiles</classifier>
<type>zip</type>
<outputDirectory>target/dir1</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>com.example</groupId>
<artifactId>MyProject</artifactId>
<version>5.0-SNAPSHOT</version>
<classifier>otherFiles</classifier>
<type>zip</type>
<outputDirectory>target/dir2</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
<goals>
<goal>unpack</goal>
</goals>
</execution>
</executions>
</plugin>
The otherFiles.zip file is never unpacked to dir2 and the conole output states:
[INFO] MyProject-5.0-SNAPSHOT-otherFiles.zip already unpacked.
When actually it was the someFiles.zip that was already unpacked.