You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2024/11/16 11:26:00 UTC
[jira] [Resolved] (MDEP-570) Extending the copy-deps feature a little
[ https://issues.apache.org/jira/browse/MDEP-570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Elliotte Rusty Harold resolved MDEP-570.
----------------------------------------
Resolution: Won't Do
I think you could get this down to two commands with some rejiggering of the second command so everything goes where it's supposed to and you don't need the cp command. Since this can be done with only two commands, I doubt we'll spend the effort on building, maintaining, and documenting a small convenience. It's simpler as is.
> Extending the copy-deps feature a little
> ----------------------------------------
>
> Key: MDEP-570
> URL: https://issues.apache.org/jira/browse/MDEP-570
> Project: Maven Dependency Plugin
> Issue Type: Improvement
> Components: copy-dependencies
> Reporter: Paul Hammant
> Priority: Minor
>
> There's a three command sequence to download an Maven artifact and all its transitive deps to a directory:
> {code}
> 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/
> {code}
> It would be great if there were a single maven-dependency goal to do the above in one operation :)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)