[ http://jira.codehaus.org/browse/MDEP-49?page=comments#action_80174 ] Chris Hilton commented on MDEP-49: ----------------------------------
I tried it with the new snapshot version and it did indeed work fine. Don't you love those kinds of bugs? I also tried the overwrite flag and even the markerFile property found in the old documentation, but got the "no setters" error for them and, looking at the Javadoc, it does indicate that there are no setters for those properties in ArtifactItem. So I'll stick with the above workaround for now. > Can't unpack multiple classifiers from same artifact; "already unpacked" > ------------------------------------------------------------------------ > > Key: MDEP-49 > URL: http://jira.codehaus.org/browse/MDEP-49 > Project: Maven 2.x Dependency Plugin > Issue Type: Bug > Affects Versions: 1.0 > Reporter: Chris Hilton > Assigned To: Brian Fox > > 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. -- 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
