Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.3.0
-
None
-
None
Description
Hello,
I want to copy dependencies with several classifiers.
A working solution is:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>${dependency.plugin.version}</version> <executions> <execution> <id>download-escrow-sources</id> <goals> <goal>copy-dependencies</goal> </goals> <phase>package</phase> <configuration> <includeScope>runtime</includeScope> <classifier>sources</classifier> <outputDirectory>${project.build.directory}/escrow-sources</outputDirectory> <includeGroupIds>com.xxx,com.yyy</includeGroupIds> <prependGroupId>true</prependGroupId> <copyPom>true</copyPom> </configuration> </execution> <execution> <id>download-escrow-scripts</id> <goals> <goal>copy-dependencies</goal> </goals> <phase>package</phase> <configuration> <includeScope>runtime</includeScope> <classifier>scripts</classifier> <outputDirectory>${project.build.directory}/escrow-sources</outputDirectory> <includeGroupIds>com.xxx,com.yyy</includeGroupIds> <prependGroupId>true</prependGroupId> <copyPom>true</copyPom> </configuration> </execution> </executions> </plugin>
But rather than duplicate the executions, i think i can use the includeClassifers:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>${dependency.plugin.version}</version> <executions> <execution> <id>download-escrow-sources</id> <goals> <goal>copy-dependencies</goal> </goals> <phase>package</phase> <configuration> <includeScope>runtime</includeScope> <includeClassifiers>scripts,sources</includeClassifiers> <outputDirectory>${project.build.directory}/escrow-sources</outputDirectory> <includeGroupIds>com.xxx,com.yyy</includeGroupIds> <prependGroupId>true</prependGroupId> <copyPom>true</copyPom> </configuration> </execution> </executions> </plugin>
But in this second case only "scripts" classifiers are copied and "sources" are missing.
Is there a bug ? Or do i misunderstood something ?
Thanks,
François