How do I add local jar files (not yet part of the Maven repository) directly in my project\'s library sources?
This is a short syntax for newer versions:
mvn install:install-file -Dfile=
It works when the JAR was built by Apache Maven - the most common case. Then it'll contain a pom.xml in a subfolder of the META-INF directory, which will be read by default.
Source: http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html