0

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

Sasikumar Murugesan
  • 4,412
  • 10
  • 51
  • 74
  • you have to mention the groupId, aritfactId and version of the jar, which you gave while installing the jar file in your local repository. – Ashish Oct 30 '13 at 09:36

1 Answers1

3

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.

Petr Mensik
  • 26,874
  • 17
  • 90
  • 115
  • i tried the same for FexXB.swc flex component file. I ran as mvn install:install-file -Dfile=FlexXB.swc -DgroupId=com.google.code.flex -DartifactId=FlexXB -Dversion=2.3.1 -Dpackaging=swc dependecy is created in maven local repository but there is no pom file created. so that again i'm getting error – Sasikumar Murugesan Oct 31 '13 at 04:57