Suzan Cioc
Suzan Cioc

Reputation: 30097

How to add JAR to local Maven repo manually AND set JAR's dependicies?

It is told everywhere that to add some JAR to maven local repo manually is is required to issue a command

mvn install:install-file -Dfile=c:\kaptcha-2.3.jar -DgroupId=com.google.code -DartifactId=kaptcha -Dversion=2.3 -Dpackaging=jar

This worked for me, but a jar was added to repo as is, i.e. without information about other jars it depends on.

How to describe dependicies also?

Upvotes: 0

Views: 4162

Answers (1)

Bittrance
Bittrance

Reputation: 2260

Not sure I understand what you want to achieve, but perhaps this documentation? http://maven.apache.org/plugins/maven-install-plugin/examples/custom-pom-installation.html

Upvotes: 1

Related Questions