Package org.apache.maven.api
Interface ArtifactCoordinates
- All Known Subinterfaces:
DependencyCoordinates
- All Known Implementing Classes:
DefaultArtifactCoordinates
,DefaultDependencyCoordinates
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 TypeMethodDescriptionReturns the identifier of the artifact.Returns the classifier of the artifact.Returns the file extension of the artifact.Returns the group identifier of the artifact.default String
getId()
Returns a unique string representation identifying this artifact.Returns the specific version, range of versions or meta-version of the artifact.
-
Method Details
-
getGroupId
Returns the group identifier of the artifact..- Returns:
- the group identifier of the artifact
-
getArtifactId
Returns the identifier of the artifact..- Returns:
- the identifier of the artifact
-
getClassifier
Returns the classifier of the artifact.- Returns:
- the classifier or an empty string if none, never
null
-
getVersionConstraint
Returns the specific version, range of versions or meta-version of the artifact.. A meta-version is a version suffixed with theSNAPSHOT
keyword.- Returns:
- the specific version, range of versions or meta-version of the artifact
-
getExtension
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:
-