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

Extending the copy-deps feature a little

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • copy-dependencies
    • None

    Description

      There's a three command sequence to download an Maven artifact and all its transitive deps to a directory:

      mvn dependency:get -Dartifact=org.eclipse.jetty:jetty-servlets:9.4.5.v20170502 -Dtransitive=true
      mvn dependency:copy-dependencies -f ~/.m2/repository/org/eclipse/jetty/jetty-servlets/9.4.5.v20170502/jetty-servlets-9.4.5.v20170502.pom -DoutputDirectory=$(pwd)/foo/ -DincludeScope=compile
      cp ~/.m2/repository/org/eclipse/jetty/jetty-servlet/9.4.5.v20170502/jetty-servlet-9.4.5.v20170502.jar foo/
      

      It would be great if there were a single maven-dependency goal to do the above in one operation

      Attachments

        Activity

          People

            Unassigned Unassigned
            paul Paul Hammant
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: