Interface ArtifactCoordinatesResolver
-
- All Known Implementing Classes:
DependencyManagementArtifactCoordinatesResolver
public interface ArtifactCoordinatesResolverA resolver for artifacts' Maven coordinates, allowing group id, artifact id, or version to be obtained from a module identifier. A module identifier may be in the formgroupId:artifactId:version, in which case coordinate resolution simply extracts the relevant piece from the identifier. Alternatively the identifier may be in the formartifactId, in which case coordinate resolution uses implementation-specific metadata to resolve the groupId and version.- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetArtifactId(java.lang.String module)Gets the artifact id of the artifact identified by the givenmodule.java.lang.StringgetGroupId(java.lang.String module)Gets the group id of the artifact identified by the givenmodule.java.lang.StringgetVersion(java.lang.String module)Gets the version of the artifact identified by the givenmodule.
-
-
-
Method Detail
-
getGroupId
java.lang.String getGroupId(java.lang.String module)
Gets the group id of the artifact identified by the givenmodule. Returnsnullif the artifact is unknown to the resolver.- Parameters:
module- the id of the module- Returns:
- the group id of the module
-
getArtifactId
java.lang.String getArtifactId(java.lang.String module)
Gets the artifact id of the artifact identified by the givenmodule. Returnsnullif the artifact is unknown to the resolver.- Parameters:
module- the id of the module- Returns:
- the artifact id of the module
-
getVersion
java.lang.String getVersion(java.lang.String module)
Gets the version of the artifact identified by the givenmodule. Returnsnullif the artifact is unknown to the resolver.- Parameters:
module- the id of the module- Returns:
- the version of the module
-
-