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