How do I add local jar files (not yet part of the Maven repository) directly in my project\'s library sources?
I'd like such solution - use maven-install-plugin
in pom file:
org.apache.maven.plugins
maven-install-plugin
2.5.2
initialize
install-file
lib/yourJar.jar
com.somegroup.id
artefact-id
x.y.z
jar
In this case you can perform mvn initialize
and jar will be installed in local maven repo. Now this jar is available during any maven step on this machine (do not forget to include this dependency as any other maven dependency in pom with
tag). It is also possible to bind jar install not to initialize
step, but any other step you like.