-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Maven Essentials
By :

Maven coordinates uniquely identify a project, dependency, or plugin defined in a POM. Each entity is uniquely identified by the combination of a group identifier, artifact identifier, and the version (and, of course, with the packaging and the classifier). The group identifier is a way of grouping different Maven artifacts. For example, a set of artifacts produced by a company can be grouped under the same group identifier. The artifact identifier is the way you identify an artifact, which could be a JAR, WAR, or any type of an artifact uniquely identified within a given group. The version
element lets you keep the same artifact in different versions in the same repository.
A valid Maven POM file must have groupId
, artifactId
, and version
. The groupId
and version
elements can also be inherited from the parent POM.
All the three coordinates of a given Maven artifact are used to define its path in the Maven repository. If we take the following example, the corresponding...
Change the font size
Change margin width
Change background colour