What is the format of fully qualified artifact name of a Maven project?

A Maven project has artifact name with following format:

<groupId>:<artifactId>:<version>

Following is the convention used by some organizations:

  • Parent pom

groupId: org.Orgname.Projectname
artifactId: org.Orgname.Projectname
version: x.x.x

E.g. org.Orgname.Projectname:org.Orgname.Projectname-1.0.0.pom

  • Modules

groupId: org.Orgname.Projectname
artifactId: org.Orgname.Projectname.Modulename
version: x.x.x

E.g. org.Orgname.Projectname:org.Orgname.Projectname.Modulename-1.0.0.jar

Read the full book at www.amazon.com
Posted in Maven, Maven Interview Questions

Leave a Reply

Your email address will not be published. Required fields are marked *

*