Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-395

get doesn't copy transitive dependencies to output directory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6
    • 2.8
    • get
    • None

    Description

      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-rr- 1 craig.forster SAILPOINT\Domain Users 1420500 Jan 30 15:42 jersey-bundle-1.9.1.jar

      Attachments

        Issue Links

          Activity

            People

              hboutemy Herve Boutemy
              craigf Craig Forster
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: