POM (groupId:artifactId:version) - II

19 May 2008

Do read first part of this post first. I will continue to explain the example given in the first part of this post.

The field groupId is unique amongst an organization/project. It’s a common practice to use dot notation in groupId. Its not a must and you may use dash notation or what ever you like. If you plan to use the dot notation, remember that this does not have to correspond to the package structure that the project contains. The group acts like the Java packaging structure (in an operating system) when stored in the repository. In the given POM, org.codehaus.mojo group lives within the directory $M2_REPO/org/codehaus/mojo .

The name of the project is given by artifactId generally. There may live many projects under the same group. The artifactID along with the groupId, create a key that separates this project from every other project in the world. In the discussed example, my-project lives in $M2_REPO/org/codehaus/mojo/my-project .

The groupId:artifactId combination denotes a single project but they cannot define which particular version of that project we are talking about. In software world, we have version numbers to differentiate the versions. Version no is used within an artifact’s repository to separate versions from each other. my-project version 1.0 files will reside at: $M2_REPO/org/codehaus/mojo/my-project/1.0 .

del.icio.us:POM (groupId:artifactId:version) - II  digg:POM (groupId:artifactId:version) - II  spurl:POM (groupId:artifactId:version) - II  wists:POM (groupId:artifactId:version) - II  simpy:POM (groupId:artifactId:version) - II  newsvine:POM (groupId:artifactId:version) - II  blinklist:POM (groupId:artifactId:version) - II  furl:POM (groupId:artifactId:version) - II  reddit:POM (groupId:artifactId:version) - II  fark:POM (groupId:artifactId:version) - II  blogmarks:POM (groupId:artifactId:version) - II  Y!:POM (groupId:artifactId:version) - II  smarking:POM (groupId:artifactId:version) - II  magnolia:POM (groupId:artifactId:version) - II  segnalo:POM (groupId:artifactId:version) - II  gifttagging:POM (groupId:artifactId:version) - II

Top Of Page | Trackback

If you found this page useful, consider linking to it. Simply copy and paste the code below into your web site.

It will look like this: POM (groupId:artifactId:version) - II

Leave a Reply