Interface ArtifactResolverResult.ResultItem
- Enclosing interface:
ArtifactResolverResult
public static interface ArtifactResolverResult.ResultItem
Represents an individual resolution result for an artifact.
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the resolved artifact.Returns the coordinates of the resolved artifact.Returns a mapping of repositories to the exceptions encountered while resolving the artifact.getPath()Returns the file system path to the resolved artifact.Returns the repository from which the artifact was resolved.booleanIndicates whether the requested artifact is not present in any of the specified repositories.booleanIndicates whether the requested artifact was resolved.
-
Method Details
-
getCoordinates
ArtifactCoordinates getCoordinates()Returns the coordinates of the resolved artifact.- Returns:
- The
ArtifactCoordinatesof the artifact.
-
getArtifact
DownloadedArtifact getArtifact()Returns the resolved artifact.- Returns:
- The
DownloadedArtifactinstance.
-
getExceptions
Map<Repository, List<Exception>> getExceptions()Returns a mapping of repositories to the exceptions encountered while resolving the artifact.- Returns:
- A
Mapwhere keys areRepositoryinstances and values areExceptioninstances.
-
getRepository
Repository getRepository()Returns the repository from which the artifact was resolved.- Returns:
- The
Repositoryinstance.
-
getPath
-
isResolved
boolean isResolved()Indicates whether the requested artifact was resolved. Note that the artifact might have been successfully resolved despitegetExceptions()indicating transfer errors while trying to fetch the artifact from some of the specified remote repositories.- Returns:
trueif the artifact was resolved,falseotherwise.
-
isMissing
boolean isMissing()Indicates whether the requested artifact is not present in any of the specified repositories.- Returns:
trueif the artifact is not present in any repository,falseotherwise.
-