Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
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