Sunday, February 12, 2012

How to upload jar to local Maven repository?

It can be achieved using mvn deploy:deploy-file command like below:

mvn deploy:deploy-file -DgroupId=com.ragsetty.testProj -DartifactId=testProj -Dversion=1.2.3 -Dfile=C:/ragsetty/projects/testProj-12.jar  -DrepositoryId=com.ragsetty.testProj -Durl=file:///C:/path-to-my-local-repository -Dpackaging=jar

No comments:

Post a Comment