Tuesday 29 July 2014

Install jar with maven in local repository

$ ls
foo.jar
$ mvn install:install-file -Dfile=foo.jar -DgroupId=foo-group -DartifactId=foo-artifact -Dversion=1 -Dpackaging=jar

pom.xml:
<dependency>
   <groupId>foo-group</groupId>
   <artifactId>foo-artifact</artifactId>
   <version>1</version>
</dependency>

No comments:

Post a Comment