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

-Dtransitive=true does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 2.3
    • None
    • get
    • None
    • Ubuntu Oneiric, JDK 6u29, Maven 3.0.3
    • Patch

    Description

      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:

      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;
       
      

      Attachments

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              jglick Jesse N. Glick
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: