You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (JIRA)" <ji...@codehaus.org> on 2013/05/12 14:40:52 UTC

[jira] (MDEP-395) get doesn't copy transitive dependencies to output directory

     [ https://jira.codehaus.org/browse/MDEP-395?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy closed MDEP-395.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.8
         Assignee: Herve Boutemy

improved documentation in [r1481543|http://svn.apache.org/r1481543]

dependency:get does transitive *resolution* of the artifact, not copy: copying resolved artifact is the purpose of dependency:copy

deprecated destination parameter, since this parameter only gives more confusion  between get and copy
                
> get doesn't copy transitive dependencies to output directory
> ------------------------------------------------------------
>
>                 Key: MDEP-395
>                 URL: https://jira.codehaus.org/browse/MDEP-395
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: get
>    Affects Versions: 2.6
>            Reporter: Craig Forster
>            Assignee: Herve Boutemy
>             Fix For: 2.8
>
>
> The documentation for the 'get' operation declares:
> "Downloads a single artifact transitively from the specified remote repositories."
> However, only the artifact specified is copied to the 'dest' directory.  All the dependencies are downloaded into the local repository, however.
> For example:
> cforster-mbp:maven craig.forster$ mvn org.apache.maven.plugins:maven-dependency-plugin:2.6:copy -Dartifact=com.sun.jersey:jersey-bundle:1.9.1 -Ddest=out/ -Dtransitive=true[INFO] Scanning for projects...
> [INFO]
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Maven Stub Project (No POM) 1
> [INFO] ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-dependency-plugin:2.6:copy (default-cli) @ standalone-pom ---
> [INFO] Configured Artifact: com.sun.jersey:jersey-bundle:1.9.1:jar
> [INFO] Copying jersey-bundle-1.9.1.jar to /Users/craig.forster/tmp/maven/${project.basedir}/target/dependency/jersey-bundle-1.9.1.jar
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1.157s
> [INFO] Finished at: Thu Jan 31 17:15:17 CST 2013
> [INFO] Final Memory: 6M/81M
> [INFO] ------------------------------------------------------------------------
> cforster-mbp:maven craig.forster$ ll out
> total 2776
> drwxr-xr-x  3 craig.forster  SAILPOINT\Domain Users      102 Jan 31 17:04 .
> drwxr-xr-x  4 craig.forster  SAILPOINT\Domain Users      136 Jan 31 17:15 ..
> -rw-r--r--  1 craig.forster  SAILPOINT\Domain Users  1420500 Jan 30 15:42 jersey-bundle-1.9.1.jar

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira