Social Icons

twitterfacebookgoogle pluslinkedinrss feed

Wednesday, April 04, 2012

Maven add jar without install

I have some problem with adding external jar in to maven project without install it. If I install JAR file other people who working on same project, have to install same JAR. them I want to avoid that issue.

First need to place jar file inside lib folder. After that using following POM entry we can use it as dependency.


   com.chandana
   example
   0.1
   system
   ${basedir}/lib/example.0.1.jar



Ex:

   com.sun
   tools
   1.5.0
   system
   ${JAVA_HOME}/lib/tools.jar


 Here very important option is system. It's say dependency provide with system, no need to look at repository. More about System Dependency




Post a Comment