[
http://jira.codehaus.org/browse/MDEP-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=258658#action_258658
]
Marco Tedone commented on MDEP-164:
-----------------------------------
Running copy-dependencies 2.2 and still seeing this issue. The command which I
run is: mvn -f target/test-classes/root.pom -s target/test-classes/settings.xml
dependency:copy-dependencies
-DoutputDirectory=C:/Users/mtedone/.m2/dependencies-copy -DcopyPom=true
Jars are copied, poms are not. Even when target folder does not exist.
> dependency:copy-dependencies does not honour 'copyPom'
> ------------------------------------------------------
>
> Key: MDEP-164
> URL: http://jira.codehaus.org/browse/MDEP-164
> Project: Maven 2.x Dependency Plugin
> Issue Type: Bug
> Components: copy-dependencies
> Affects Versions: 2.0-alpha-4
> Reporter: James Walker
> Assignee: Paul Gier
> Fix For: 2.2
>
>
> Configure the pom as follows:
> {quote}
> <build>
> ...
> <pluginManagement>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-dependency-plugin</artifactId>
> <version>2.0-alpha-4</version>
> <configuration>
> <copyPom>true</copyPom>
>
> <failOnMissingClassifierArtifact>false</failOnMissingClassifierArtifact>
> <outputDirectory>lib</outputDirectory>
> </configuration>
> </plugin>
> </plugins>
> </pluginManagement>
> ...
> {quote}
> Running:
> {quote}
> mvn dependency:copy-dependencies
> {quote}
> will copy the dependent jars but not their pom files. Adding configuration
> to use the repository layout doesn't fix the problem.
--
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