Package org.apache.maven.api.services
Interface ArtifactResolver
- All Superinterfaces:
Service
- All Known Implementing Classes:
DefaultArtifactResolver
Resolves the artifact, i.e download the file when required and attach it to the artifact
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionresolve
(ArtifactResolverRequest request) default ArtifactResolverResult
resolve
(Session session, Collection<? extends ArtifactCoordinate> coordinates)
-
Method Details
-
resolve
- Parameters:
request
-ArtifactResolverRequest
- Returns:
ArtifactResolverResult
- Throws:
ArtifactResolverException
- in case of an errorIllegalArgumentException
- in case of parameterbuildingRequest
isnull
or parametermavenArtifact
isnull
or invalid
-
resolve
default ArtifactResolverResult resolve(Session session, Collection<? extends ArtifactCoordinate> coordinates) - Parameters:
session
-Session
coordinates
- array ofArtifactCoordinate
- Returns:
ArtifactResolverResult
- Throws:
ArtifactResolverException
- in case of an error.IllegalArgumentException
- in case of parameterbuildingRequest
isnull
or parametercoordinate
isnull
or invalid
-