Last Updated: February 25, 2016
·
442
· hvasconcelos

Install a jar dependency in your local maven repository

mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=jar

Example:

mvn install:install-file -Dfile=bugsense3.0.8.jar -DgroupId=com.bugsense -DartifactId=bugsense -Dversion=3.0.8 -Dpackaging=jar

Add the dependency to your pom.xml

<dependency>
    <groupId>com.bugsense</groupId>
    <artifactId>bugsense</artifactId>
    <version>3.0.8</version>
</dependency>