Saturday, November 19, 2011

How to add Jar files(dependencies) to your local Maven Repository using linux vi editor

sometimes you may required to download some jar files(dependencies) manually from the remote servers  and add them to your local maven repository. the following command can be used in the linux vi editor for manually adding the jar file for your maven local repository.

mvn install:install-file -Dfile=/home/chathuranga/spring-modules-validation-0.9.jar -DgroupId=org.springmodules -DartifactId=spring-modules-validation -Dversion=0.9 -Dpackaging=jar -DgeneratePom=true

you are required to change the parameter values appropriately based on your dependency type(jar file type)

hope this will help for you!

Chathuranga Tennakoon

No comments:

Post a Comment