Friday, March 26, 2010

Download artifact from remote repository

Sometimes you may want to download an artifact from a remote repository without adding the dependency in pom.xml. You can do this with dependency:get.

mvn org.apache.maven.plugins:maven-dependency-plugin:2.1:get \
-DrepoUrl=http://download.java.net/maven/2/ \
-Dartifact=robo-guice:robo-guice:0.4-SNAPSHOT


Here is a Reference.

No comments:

Post a Comment