Package org.apache.maven.api
Interface ArtifactCoordinates
- All Known Subinterfaces:
DependencyCoordinates
Partial identification of an
Artifact in a Maven repository.
Each ArtifactCoordinates instance is basically a pointer to a file in the Maven repository,
except that the exact version may not be known yet.- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringReturns the artifactId.default StringReturns the classifier.default StringReturns the extension.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Useclassifier()instead.Deprecated, for removal: This API element is subject to removal in a future version.Useextension()instead.Deprecated, for removal: This API element is subject to removal in a future version.UsegroupId()instead.default StringgetId()Returns a unique string representation identifying this artifact.Deprecated, for removal: This API element is subject to removal in a future version.UseversionConstraint()instead.default StringgroupId()Returns the groupId.default VersionConstraintReturns the versionConstraint.
-
Method Details
-
groupId
Returns the groupId.- Returns:
- the groupId
- Since:
- 4.0.0
-
getGroupId
Deprecated, for removal: This API element is subject to removal in a future version.UsegroupId()instead.Returns the group identifier of the artifact.- Returns:
- the group identifier of the artifact
-
artifactId
Returns the artifactId.- Returns:
- the artifactId
- Since:
- 4.0.0
-
getArtifactId
Deprecated, for removal: This API element is subject to removal in a future version.UseartifactId()instead.Returns the identifier of the artifact.- Returns:
- the identifier of the artifact
-
classifier
Returns the classifier.- Returns:
- the classifier
- Since:
- 4.0.0
-
getClassifier
Deprecated, for removal: This API element is subject to removal in a future version.Useclassifier()instead.Returns the classifier of the artifact.- Returns:
- the classifier or an empty string if none, never
null
-
versionConstraint
Returns the versionConstraint.- Returns:
- the versionConstraint
- Since:
- 4.0.0
-
getVersionConstraint
Deprecated, for removal: This API element is subject to removal in a future version.UseversionConstraint()instead.Returns the specific version, range of versions or meta-version of the artifact. A meta-version is a version suffixed with theSNAPSHOTkeyword.- Returns:
- the specific version, range of versions or meta-version of the artifact
-
extension
Returns the extension.- Returns:
- the extension
- Since:
- 4.0.0
-
getExtension
Deprecated, for removal: This API element is subject to removal in a future version.Useextension()instead.Returns the file extension of the artifact. The dot separator is not included in the returned string.- Returns:
- the file extension or an empty string if none, never
null
-
getId
Returns a unique string representation identifying this artifact. The default implementation returns a colon-separated list of group identifier, artifact identifier, extension, classifier and version.- Returns:
- a unique string representation identifying this artifact
- See Also:
-
artifactId()instead.