I am writing a script for deploying java application. The scenarion is simple:
How can I download this jar from maven repo to local folder?
Important
mvn org.apache.maven.plugins:maven-dependency-plugin:2.1:copy
will fail, because it runs only in folder where pom.xml
is present.Try dependency:get
like this:
mvn dependency:get -DrepoUrl=http://repo.maven.apache.org/maven2/ -Dartifact=org.springframework:spring-context:4.0.4.RELEASE:jar -Dtransitive=false -Ddest=spring-context-4.0.4.RELEASE.jar
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With