Add jar to local repository
Make sure the jar file does not exist.
See repository.html for more information.
Maven 2
Guide to installing 3rd party JARs
To install a JAR in the local repository use the following command:
mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> \
-DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>
Sample
mvn install:install-file -DgroupId=com.sample.lucene -DartifactId=lucene-core -Dversion=2.2.0 -Dfile=LUCENE-core-2.2.0.jar -Dpackaging=jar -DgeneratePom=true
(I don’t know if the generatePom
has any effect at all).