Reputation: 313
I built jar
of project in Intellij Idea
(Build
-Build Artifact
), and I'm trying to add it to another project that uses Maven
. I have to add it to pom.xml
, but I need to know groupId, artifactId and version of my jar
.
Upvotes: 1
Views: 10648
Reputation: 319
If you built your first project with maven, in the pom.xml of the project, you have to define your maven coordinates (groupId, artifactId, version). I think in your case, you developed your project without maven. In your second project, which is developed with maven, you should add your first jar file as an external jar file. There is a step by step tutorial on the link below.
Adding an external Jar file to your project
Upvotes: 3