Package org.apache.maven.api.services
Interface ArtifactResolverResult.ResultItem
- Enclosing interface:
- ArtifactResolverResult
public static interface ArtifactResolverResult.ResultItem
Represents an individual resolution result for an artifact.
-
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.boolean
Indicates whether the requested artifact is not present in any of the specified repositories.boolean
Indicates whether the requested artifact was resolved.
-
Method Details
-
getCoordinates
ArtifactCoordinates getCoordinates()Returns the coordinates of the resolved artifact.- Returns:
- The
ArtifactCoordinates
of the artifact.
-
getArtifact
DownloadedArtifact getArtifact()Returns the resolved artifact.- Returns:
- The
DownloadedArtifact
instance.
-
getExceptions
Map<Repository,List<Exception>> getExceptions()Returns a mapping of repositories to the exceptions encountered while resolving the artifact.- Returns:
- A
Map
where keys areRepository
instances and values areException
instances.
-
getRepository
Repository getRepository()Returns the repository from which the artifact was resolved.- Returns:
- The
Repository
instance.
-
getPath
Path getPath()Returns the file system path to the resolved artifact.- Returns:
- The
Path
to the artifact.
-
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:
true
if the artifact was resolved,false
otherwise.
-
isMissing
boolean isMissing()Indicates whether the requested artifact is not present in any of the specified repositories.- Returns:
true
if the artifact is not present in any repository,false
otherwise.
-