How do I add local jar files (not yet part of the Maven repository) directly in my project\'s library sources?
Install the JAR into your local Maven repository as follows:
mvn install:install-file \
-Dfile= \
-DgroupId= \
-DartifactId= \
-Dversion= \
-Dpackaging= \
-DgeneratePom=true
Where each refers to:
: the path to the file to load e.g → c:\kaptcha-2.3.jar
: the group that the file should be registered under e.g → com.google.code
: the artifact name for the file e.g → kaptcha
: the version of the file e.g → 2.3
: the packaging of the file e.g. → jar
Reference