Andrei Ermicioi's Blog

Just another WordPress.com weblog

Adding a Java library to local maven repository

Downloading jar file somewhere on hdd.
Execute command:

mvn install:install-file -Dfile=/home/erani/jlibs/kaptcha-2.3.jar -DgroupId=com.google.code
-DartifactId=kaptcha -Dversion=2.3 -Dpackaging=jar

adding dependency in pom.xml

<dependency>
<groupId>com.google.code</groupId>
<artifactId>kaptcha</artifactId>
<version>2.3</version>
</dependency>

Advertisements

Written by eraniblog

April 20, 2010 at 13:36

Posted in Coding

%d bloggers like this: