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

Olivier Lamy closed MDEP-335.
-----------------------------

       Resolution: Duplicate
    Fix Version/s: 2.4
         Assignee: Olivier Lamy  (was: Brian Fox)

> -Dtransitive=true does not work
> -------------------------------
>
>                 Key: MDEP-335
>                 URL: https://jira.codehaus.org/browse/MDEP-335
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: get
>    Affects Versions: 2.3
>         Environment: Ubuntu Oneiric, JDK 6u29, Maven 3.0.3
>            Reporter: Jesse Glick
>            Assignee: Olivier Lamy
>            Priority: Critical
>             Fix For: 2.4
>
>
> {{mvn dependency:get}} does not download transitive dependencies, only the 
> specified artifact. Adding {{-Dtransitive=true}} (even though this is 
> documented to be the default) does not help. The cause seems to be a simple 
> typo; with that fixed, the goal works as far as I can tell:
> {code}
> Index: src/main/java/org/apache/maven/plugin/dependency/GetMojo.java
> ===================================================================
> --- src/main/java/org/apache/maven/plugin/dependency/GetMojo.java     
> (revision 1197624)
> +++ src/main/java/org/apache/maven/plugin/dependency/GetMojo.java     
> (working copy)
> @@ -151,7 +151,7 @@
>  
>      /**
>       * Download transitively, retrieving the specified artifact and all of 
> its dependencies.
> -     * @parameter expression="{$transitive}" default-value=true
> +     * @parameter expression="${transitive}" default-value=true
>       */
>      private boolean transitive = true;
>  
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to