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.0
-
Method Summary
Modifier and TypeMethodDescriptionresolve
(ArtifactResolverRequest request) default ArtifactResolverResult
resolve
(Session session, Collection<? extends ArtifactCoordinates> coordinates) Resolves several artifacts from their coordinates.default ArtifactResolverResult
resolve
(Session session, Collection<? extends ArtifactCoordinates> coordinates, List<RemoteRepository> repositories) Resolves several artifacts from their 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 ArtifactCoordinates> coordinates) Resolves several artifacts from their coordinates.- Parameters:
session
-Session
coordinates
- array ofArtifactCoordinates
- Returns:
ArtifactResolverResult
- Throws:
ArtifactResolverException
- in case of an error.IllegalArgumentException
- in case of parameterbuildingRequest
isnull
or parametercoordinates
isnull
or invalid
-
resolve
default ArtifactResolverResult resolve(Session session, Collection<? extends ArtifactCoordinates> coordinates, List<RemoteRepository> repositories) Resolves several artifacts from their coordinates.- Parameters:
session
-Session
repositories
- the list of remote repositories ornull
to use the session repositoriescoordinates
- array ofArtifactCoordinates
- Returns:
ArtifactResolverResult
- Throws:
ArtifactResolverException
- in case of an error.IllegalArgumentException
- in case of parameterbuildingRequest
isnull
or parametercoordinates
isnull
or invalid
-