Tuesday, January 29, 2013

Maven3 install local 3rd party jar

1) install the third party jar to local repository


mvn install:install-file -Dfile={your local jar location}  -DgroupId=org.tanukisoftware -DartifactId=wrapper -Dversion=3.5.15 -Dpackaging=jar  -DgeneratePom=true

2) add it in depedency
<dependency>

<groupId>org.tanukisoftware</groupId>
<artifactId>wrapper</artifactId>
<version>3.5.15</version>
</dependency>

Take Note:  cannot miss this argument -DgeneratePom=true, if without this argument, maven will not generate pom file, then when you use maven to build your code, maven will try to download the jar from remote repository

No comments:

Post a Comment