Return-Path: X-Original-To: apmail-maven-issues-archive@minotaur.apache.org Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C4A1011C16 for ; Sun, 12 May 2013 12:41:24 +0000 (UTC) Received: (qmail 91542 invoked by uid 500); 12 May 2013 12:41:24 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 91339 invoked by uid 500); 12 May 2013 12:41:20 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 91275 invoked by uid 99); 12 May 2013 12:41:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 May 2013 12:41:17 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [63.246.24.159] (HELO codehaus01.managed.contegix.com) (63.246.24.159) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 May 2013 12:41:13 +0000 Received: from codehaus01 (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id CD686B06C5 for ; Sun, 12 May 2013 07:40:52 -0500 (CDT) Date: Sun, 12 May 2013 07:40:52 -0500 (CDT) From: "Herve Boutemy (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] (MDEP-395) get doesn't copy transitive dependencies to output directory MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 22cf62d5d84cf5bea94eb3b65e0ebd09 X-Virus-Checked: Checked by ClamAV on apache.org [ 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