org.apache.maven.artifact.resolver
Class DefaultArtifactResolver

java.lang.Object
  extended by org.apache.maven.artifact.resolver.DefaultArtifactResolver
All Implemented Interfaces:
ArtifactResolver

@Component(role=ArtifactResolver.class)
public class DefaultArtifactResolver
extends Object
implements ArtifactResolver

Author:
Jason van Zyl

Field Summary
protected  ArtifactFactory artifactFactory
           
 
Fields inherited from interface org.apache.maven.artifact.resolver.ArtifactResolver
ROLE
 
Constructor Summary
DefaultArtifactResolver()
           
 
Method Summary
protected  void finalize()
           
 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)
           
 ArtifactResolutionResult resolve(ArtifactResolutionRequest request)
           
 void resolveAlways(Artifact artifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository)
           
 ArtifactResolutionResult resolveTransitively(Set<Artifact> artifacts, Artifact originatingArtifact, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories, ArtifactMetadataSource source, ArtifactFilter filter)
           
 ArtifactResolutionResult resolveTransitively(Set<Artifact> artifacts, Artifact originatingArtifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository, ArtifactMetadataSource source)
           
 ArtifactResolutionResult resolveTransitively(Set<Artifact> artifacts, Artifact originatingArtifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository, ArtifactMetadataSource source, List<ResolutionListener> listeners)
           
 ArtifactResolutionResult resolveTransitively(Set<Artifact> artifacts, Artifact originatingArtifact, Map managedVersions, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories, ArtifactMetadataSource source)
           
 ArtifactResolutionResult resolveTransitively(Set<Artifact> artifacts, Artifact originatingArtifact, Map managedVersions, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories, ArtifactMetadataSource source, ArtifactFilter filter)
           
 ArtifactResolutionResult resolveTransitively(Set<Artifact> artifacts, Artifact originatingArtifact, Map managedVersions, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories, ArtifactMetadataSource source, ArtifactFilter filter, List<ResolutionListener> listeners)
           
 ArtifactResolutionResult resolveTransitively(Set<Artifact> artifacts, Artifact originatingArtifact, Map managedVersions, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories, ArtifactMetadataSource source, ArtifactFilter filter, List<ResolutionListener> listeners, List<ConflictResolver> conflictResolvers)
           
 ArtifactResolutionResult resolveWithExceptions(ArtifactResolutionRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

artifactFactory

@Requirement
protected ArtifactFactory artifactFactory
Constructor Detail

DefaultArtifactResolver

public DefaultArtifactResolver()
Method Detail

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable

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 interface ArtifactResolver
Throws:
ArtifactResolutionException
ArtifactNotFoundException

resolveAlways

public void resolveAlways(Artifact artifact,
                          List<ArtifactRepository> remoteRepositories,
                          ArtifactRepository localRepository)
                   throws ArtifactResolutionException,
                          ArtifactNotFoundException
Specified by:
resolveAlways in interface ArtifactResolver
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 interface ArtifactResolver
Throws:
ArtifactResolutionException
ArtifactNotFoundException

resolveTransitively

public ArtifactResolutionResult resolveTransitively(Set<Artifact> artifacts,
                                                    Artifact originatingArtifact,
                                                    Map managedVersions,
                                                    ArtifactRepository localRepository,
                                                    List<ArtifactRepository> remoteRepositories,
                                                    ArtifactMetadataSource source)
                                             throws ArtifactResolutionException,
                                                    ArtifactNotFoundException
Specified by:
resolveTransitively in interface ArtifactResolver
Throws:
ArtifactResolutionException
ArtifactNotFoundException

resolveTransitively

public ArtifactResolutionResult resolveTransitively(Set<Artifact> artifacts,
                                                    Artifact originatingArtifact,
                                                    Map managedVersions,
                                                    ArtifactRepository localRepository,
                                                    List<ArtifactRepository> remoteRepositories,
                                                    ArtifactMetadataSource source,
                                                    ArtifactFilter filter)
                                             throws ArtifactResolutionException,
                                                    ArtifactNotFoundException
Specified by:
resolveTransitively in interface ArtifactResolver
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 interface ArtifactResolver
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 interface ArtifactResolver
Throws:
ArtifactResolutionException
ArtifactNotFoundException

resolveTransitively

public ArtifactResolutionResult resolveTransitively(Set<Artifact> artifacts,
                                                    Artifact originatingArtifact,
                                                    Map managedVersions,
                                                    ArtifactRepository localRepository,
                                                    List<ArtifactRepository> remoteRepositories,
                                                    ArtifactMetadataSource source,
                                                    ArtifactFilter filter,
                                                    List<ResolutionListener> listeners)
                                             throws ArtifactResolutionException,
                                                    ArtifactNotFoundException
Specified by:
resolveTransitively in interface ArtifactResolver
Throws:
ArtifactResolutionException
ArtifactNotFoundException

resolveTransitively

public ArtifactResolutionResult resolveTransitively(Set<Artifact> artifacts,
                                                    Artifact originatingArtifact,
                                                    Map managedVersions,
                                                    ArtifactRepository localRepository,
                                                    List<ArtifactRepository> remoteRepositories,
                                                    ArtifactMetadataSource source,
                                                    ArtifactFilter filter,
                                                    List<ResolutionListener> listeners,
                                                    List<ConflictResolver> conflictResolvers)
                                             throws ArtifactResolutionException,
                                                    ArtifactNotFoundException
Throws:
ArtifactResolutionException
ArtifactNotFoundException

resolveWithExceptions

public ArtifactResolutionResult resolveWithExceptions(ArtifactResolutionRequest request)
                                               throws ArtifactResolutionException,
                                                      ArtifactNotFoundException
Throws:
ArtifactResolutionException
ArtifactNotFoundException

resolve

public ArtifactResolutionResult resolve(ArtifactResolutionRequest request)
Specified by:
resolve in interface ArtifactResolver

resolve

public void resolve(Artifact artifact,
                    List<ArtifactRepository> remoteRepositories,
                    ArtifactRepository localRepository)
             throws ArtifactResolutionException,
                    ArtifactNotFoundException
Specified by:
resolve in interface ArtifactResolver
Throws:
ArtifactResolutionException
ArtifactNotFoundException


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.