will_hunting
will_hunting

Reputation: 313

What is groupId and artifactId of jar built by Intellij Idea?

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

Answers (1)

Bernhard Colby
Bernhard Colby

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

Related Questions