Class DefaultArtifactResolver
java.lang.Object
org.apache.maven.artifact.resolver.DefaultArtifactResolver
- All Implemented Interfaces:
ArtifactResolver
,org.codehaus.plexus.personality.plexus.lifecycle.phase.Disposable
@Component(role=ArtifactResolver.class)
public class DefaultArtifactResolver
extends Object
implements ArtifactResolver, org.codehaus.plexus.personality.plexus.lifecycle.phase.Disposable
- Author:
- Jason van Zyl
-
Field Summary
Fields inherited from interface org.apache.maven.artifact.resolver.ArtifactResolver
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
void
resolve
(Artifact artifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository) void
resolve
(Artifact artifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository, org.apache.maven.wagon.events.TransferListener resolutionListener) resolve
(ArtifactResolutionRequest request) void
resolveAlways
(Artifact artifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository) resolveTransitively
(Set<Artifact> artifacts, Artifact originatingArtifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository, ArtifactMetadataSource source) resolveTransitively
(Set<Artifact> artifacts, Artifact originatingArtifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository, ArtifactMetadataSource source, List<ResolutionListener> listeners) resolveTransitively
(Set<Artifact> artifacts, Artifact originatingArtifact, Map<String, Artifact> managedVersions, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories, ArtifactMetadataSource source) resolveTransitively
(Set<Artifact> artifacts, Artifact originatingArtifact, Map<String, Artifact> managedVersions, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories, ArtifactMetadataSource source, ArtifactFilter filter) resolveTransitively
(Set<Artifact> artifacts, Artifact originatingArtifact, Map<String, Artifact> managedVersions, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories, ArtifactMetadataSource source, ArtifactFilter filter, List<ResolutionListener> listeners) resolveTransitively
(Set<Artifact> artifacts, Artifact originatingArtifact, Map<String, Artifact> managedVersions, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories, ArtifactMetadataSource source, ArtifactFilter filter, List<ResolutionListener> listeners, List<ConflictResolver> conflictResolvers) resolveTransitively
(Set<Artifact> artifacts, Artifact originatingArtifact, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories, ArtifactMetadataSource source, ArtifactFilter filter)
-
Field Details
-
artifactFactory
-
-
Constructor Details
-
DefaultArtifactResolver
public DefaultArtifactResolver()
-
-
Method Details
-
resolve
public void resolve(Artifact artifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository, org.apache.maven.wagon.events.TransferListener resolutionListener) throws ArtifactResolutionException, ArtifactNotFoundException - Specified by:
resolve
in interfaceArtifactResolver
- Throws:
ArtifactResolutionException
ArtifactNotFoundException
-
resolveAlways
public void resolveAlways(Artifact artifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository) throws ArtifactResolutionException, ArtifactNotFoundException - Specified by:
resolveAlways
in interfaceArtifactResolver
- Throws:
ArtifactResolutionException
ArtifactNotFoundException
-
resolveTransitively
public ArtifactResolutionResult resolveTransitively(Set<Artifact> artifacts, Artifact originatingArtifact, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories, ArtifactMetadataSource source, ArtifactFilter filter) throws ArtifactResolutionException, ArtifactNotFoundException - Specified by:
resolveTransitively
in interfaceArtifactResolver
- Throws:
ArtifactResolutionException
ArtifactNotFoundException
-
resolveTransitively
public ArtifactResolutionResult resolveTransitively(Set<Artifact> artifacts, Artifact originatingArtifact, Map<String, Artifact> managedVersions, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories, ArtifactMetadataSource source) throws ArtifactResolutionException, ArtifactNotFoundException- Specified by:
resolveTransitively
in interfaceArtifactResolver
- Throws:
ArtifactResolutionException
ArtifactNotFoundException
-
resolveTransitively
public ArtifactResolutionResult resolveTransitively(Set<Artifact> artifacts, Artifact originatingArtifact, Map<String, Artifact> managedVersions, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories, ArtifactMetadataSource source, ArtifactFilter filter) throws ArtifactResolutionException, ArtifactNotFoundException- Specified by:
resolveTransitively
in interfaceArtifactResolver
- Throws:
ArtifactResolutionException
ArtifactNotFoundException
-
resolveTransitively
public ArtifactResolutionResult resolveTransitively(Set<Artifact> artifacts, Artifact originatingArtifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository, ArtifactMetadataSource source) throws ArtifactResolutionException, ArtifactNotFoundException - Specified by:
resolveTransitively
in interfaceArtifactResolver
- Throws:
ArtifactResolutionException
ArtifactNotFoundException
-
resolveTransitively
public ArtifactResolutionResult resolveTransitively(Set<Artifact> artifacts, Artifact originatingArtifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository, ArtifactMetadataSource source, List<ResolutionListener> listeners) throws ArtifactResolutionException, ArtifactNotFoundException - Specified by:
resolveTransitively
in interfaceArtifactResolver
- Throws:
ArtifactResolutionException
ArtifactNotFoundException
-
resolveTransitively
public ArtifactResolutionResult resolveTransitively(Set<Artifact> artifacts, Artifact originatingArtifact, Map<String, Artifact> managedVersions, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories, ArtifactMetadataSource source, ArtifactFilter filter, List<ResolutionListener> listeners) throws ArtifactResolutionException, ArtifactNotFoundException- Specified by:
resolveTransitively
in interfaceArtifactResolver
- Throws:
ArtifactResolutionException
ArtifactNotFoundException
-
resolveTransitively
public ArtifactResolutionResult resolveTransitively(Set<Artifact> artifacts, Artifact originatingArtifact, Map<String, Artifact> managedVersions, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories, ArtifactMetadataSource source, ArtifactFilter filter, List<ResolutionListener> listeners, List<ConflictResolver> conflictResolvers) throws ArtifactResolutionException, ArtifactNotFoundException -
resolveWithExceptions
public ArtifactResolutionResult resolveWithExceptions(ArtifactResolutionRequest request) throws ArtifactResolutionException, ArtifactNotFoundException -
resolve
- Specified by:
resolve
in interfaceArtifactResolver
-
resolve
public void resolve(Artifact artifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository) throws ArtifactResolutionException, ArtifactNotFoundException - Specified by:
resolve
in interfaceArtifactResolver
- Throws:
ArtifactResolutionException
ArtifactNotFoundException
-
dispose
public void dispose()- Specified by:
dispose
in interfaceorg.codehaus.plexus.personality.plexus.lifecycle.phase.Disposable
-