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

maven-dependency-plugin:2.2:get just download single jar file even if transitive property is set to true

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 2.2
    • None
    • get
    • None
    • Windows XP / SUSE Linux

    Description

      I am trying to see if can download maven artifact transitively (without pom file) from maven repository (Nexus in my case) to local server.

      As my POC I am trying to download one of the existing artifact cxf-rt-frontend-jaxws from my local nexus repo.

      Below is the command i am using to download. Now the issue is it only downloads the single jar(cxf-rt-frontend-jaxws-2.2.9.jar) file and does not download any of the dependencies.. ( I am using latest version of mvn 3.0.3)

      But same artifact if i add in the pom file of one of my java/maven projects, then it does downloads all the required artifacts.

      $ mvn -c org.apache.maven.plugins:maven-dependency-plugin:2.2:get -Dtransitive=true -DrepoUrl=http://loneqidelappu3.uk.db.com:8081/nexus/content/groups/common -Dartifact=org.apache.cxf:cxf-rt-frontend-jaxws:2.2.9
      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Maven Stub Project (No POM) 1
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] — maven-dependency-plugin:2.2:get (default-cli) @ standalone-pom —
      Downloading: http://loneqidelappu3.uk.db.com:8081/nexus/content/groups/common/org/apache/cxf/cxf-rt-frontend-jaxws/2.2.9/cxf-rt-frontend-jaxws-2.2.9.jar
      Downloaded: http://loneqidelappu3.uk.db.com:8081/nexus/content/groups/common/org/apache/cxf/cxf-rt-frontend-jaxws/2.2.9/cxf-rt-frontend-jaxws-2.2.9.jar (302 KB
      at 253.6 KB/sec)
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 2.328s
      [INFO] Finished at: Sat Mar 26 23:49:04 EDT 2011
      [INFO] Final Memory: 3M/7M
      [INFO] ------------------------------------------------------------------------

      Attachments

        Issue Links

          Activity

            People

              carlos Carlos Sanchez Gonzalez
              jolly_amit Amit Jolly
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: