Maven coordinates are used to uniquely identify an artifact in the maven repository (groupId:artifactId:version). It is similar to an IP address which is used to identify the system in the internet.
Example
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.9.0</version>
</dependency>
Three coordinates of maven dependency.
a. groupId: Unique to an organization. In general, an organization reverse name is used ad group id. groupId can be inherited from parent pom.
b. artifactId: Represents the project name. Ex: gson
c.
version:
specifies the version of artifact. version can be inherited from parent pom.
Reference
https://maven.apache.org/pom.html#maven-coordinates
Previous Next Home
No comments:
Post a Comment