Sasikumar Murugesan
Sasikumar Murugesan

Reputation: 4518

How to add\install to maven dependency of newly created\third party jar in pom.xml

For a maven project a Jar file needed for my code but which is not in maven repository so, I have downloaded and added the jar file in configured remote repository.

I want to add dependency of the jar. so i would like to know

<groupId>?</groupId>
<artifactId>?</artifactId>
<version>?</version>

Also i like to know where i can find these details in the jar

Upvotes: 0

Views: 1552

Answers (1)

Petr Mensik
Petr Mensik

Reputation: 27536

You need to install this JAR into your own repository, see this official tutorial.

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

Now include this installed artifact into your project as a regular dependency.

Upvotes: 3

Related Questions