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

The get Mojo doesn't resolve the artifact when setting transitive to false

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.1
    • get
    • None
    • Important

    Description

      Using a command line call with no POM

      With 3.0.0

      mvn -X -B -U org.apache.maven.plugins:maven-dependency-plugin:3.0.0:get -Dartifact=com.cloudbees.jenkins.main:jenkins-enterprise-war:2.7.21.1:war -Dtransitive=false
      [INFO] Scanning for projects...
      [INFO] Downloading: https://nexus-internal.cloudbees.com/content/groups/mirror/org/apache/maven/plugins/maven-dependency-plugin/maven-metadata.xml
      [INFO] Downloaded: https://nexus-internal.cloudbees.com/content/groups/mirror/org/apache/maven/plugins/maven-dependency-plugin/maven-metadata.xml (921 B at 198 B/s)
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Maven Stub Project (No POM) 1
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] --- maven-dependency-plugin:3.0.0:get (default-cli) @ standalone-pom ---
      [INFO] Resolving com.cloudbees.jenkins.main:jenkins-enterprise-war:war:2.7.21.1
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 5.835 s
      [INFO] Finished at: 2016-12-16T21:58:22+01:00
      [INFO] Final Memory: 15M/172M
      [INFO] ------------------------------------------------------------------------
      

      With 2.10

      mvn -X -B -U org.apache.maven.plugins:maven-dependency-plugin:3.0.0:get -Dartifact=com.cloudbees.jenkins.main:jenkins-enterprise-war:2.7.21.1:war -Dtransitive=false
      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Maven Stub Project (No POM) 1
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] --- maven-dependency-plugin:2.10:get (default-cli) @ standalone-pom ---
      [INFO] Resolving com.cloudbees.jenkins.main:jenkins-enterprise-war:war:2.7.21.1
      [INFO] Downloading: https://nexus-internal.cloudbees.com/content/groups/mirror/com/cloudbees/jenkins/main/jenkins-enterprise-war/2.7.21.1/jenkins-enterprise-war-2.7.21.1.war
      ...
      

      cc rfscholte

      I'm on Apache Maven 3.4.0-SNAPSHOT but my coworkers has the issue with 3.3.9 and others releases

      Attachments

        Activity

          People

            gboue Guillaume Boué
            aheritier Arnaud Heritier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: