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 SummaryModifier 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 StringgetId()Returns a unique string representation identifying this artifact.Returns the specific version, range of versions or meta-version of the artifact.
- 
Method Details- 
getGroupIdReturns the group identifier of the artifact..- Returns:
- the group identifier of the artifact
 
- 
getArtifactIdReturns the identifier of the artifact..- Returns:
- the identifier of the artifact
 
- 
getClassifierReturns the classifier of the artifact.- Returns:
- the classifier or an empty string if none, never null
 
- 
getVersionConstraintReturns 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
 
- 
getExtensionReturns 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
 
- 
getIdReturns 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:
 
 
-