Package org.apache.maven.api.services
Interface ArtifactResolverResult
- All Superinterfaces:
Result<ArtifactResolverRequest>
Represents the result of resolving an artifact.
This interface provides access to resolved artifacts, their associated paths, and any related exceptions that occurred during the resolution process.
- Since:
- 4.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Represents an individual resolution result for an artifact. -
Method Summary
Modifier and TypeMethodDescriptionReturns a collection of resolved artifacts.Retrieves the file system path associated with a specific artifact.getResult
(ArtifactCoordinates coordinates) Retrieves the resolution result for a specific set of artifact coordinates.Returns a mapping of artifact coordinates to their corresponding resolution results.Methods inherited from interface org.apache.maven.api.services.Result
getRequest
-
Method Details
-
getArtifacts
Returns a collection of resolved artifacts.- Returns:
- A collection of
DownloadedArtifact
instances representing the resolved artifacts.
-
getPath
Retrieves the file system path associated with a specific artifact. -
getResults
Returns a mapping of artifact coordinates to their corresponding resolution results.- Returns:
- A
Map
where keys areArtifactCoordinates
and values areArtifactResolverResult.ResultItem
instances.
-
getResult
Retrieves the resolution result for a specific set of artifact coordinates.- Parameters:
coordinates
- TheArtifactCoordinates
identifying the artifact.- Returns:
- The corresponding
ArtifactResolverResult.ResultItem
, ornull
if no result exists.
-