public interface MavenCoordinate
"groupId:artifactId:packaging:classifier:version") which is capable of resolving to an artifact.
Also note that since "packaging" and "classifier" are optional, the following canonical forms are also valid:
groupId:artifactId:packaging:versiongroupId:artifactId:version
To match the <dependency /> sections in POM metadata, the packaging field is also aliased as
"type" operations.
Type can represent both packaging and classifier for some of the use cases, like <type>test-jar</type>. In such
cases,
type will act as specifier for both packaging and classifier transparently to user.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Determines whether two
MavenCoordinate instances are equal by value; all fields are considered except
for version |
String |
getArtifactId()
Returns the "artifactId" portion of this artifact's coordinates
|
String |
getClassifier()
Returns the "classifier" portion of this artifact's coordinates.
|
String |
getGroupId()
Returns the "groupId" portion of this artifact's coordinates
|
PackagingType |
getPackaging()
Returns the "packaging" portion of this artifact's coordinates; always returns a value.
|
PackagingType |
getType()
Alias to
getPackaging(). |
String |
getVersion()
Returns the declared "version" portion of this artifact's coordinates, for instance "1.2.0-alpha-2" or
"1.2.0-SNAPSHOT".
|
int |
hashCode() |
toCanonicalFormPackagingType getPackaging()
PackagingType.JAR.PackagingType getType()
getPackaging().String getClassifier()
String getVersion()
MavenArtifactInfo.getResolvedVersion().null.boolean equals(Object other)
MavenCoordinate instances are equal by value; all fields are considered except
for versionString getGroupId()
String getArtifactId()
Copyright © 2025 JBoss by Red Hat. All rights reserved.