How do I add local jar files (not yet part of the Maven repository) directly in my project\'s library sources?
The really quick and dirty way is to point to a local file:
sample
com.sample
1.0
system
C:\DEV\myfunnylib\yourJar.jar
However this will only live on your machine (obviously), for sharing it usually makes sense to use a proper m2 archive (nexus/artifactory) or if you do not have any of these or don't want to set one up a local maven structured archive and configure a "repository" in your pom: local:
my-local-repo
file://C:/DEV//mymvnrepo
remote:
my-remote-repo
http://192.168.0.1/whatever/mavenserver/youwant/repo
for this a relative path is also possible using the basedir variable:
file:${basedir}