org.apache.maven.artifact.resolver
Class DefaultArtifactResolver

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.artifact.resolver.DefaultArtifactResolver
All Implemented Interfaces:
ArtifactResolver, org.codehaus.plexus.logging.LogEnabled

public class DefaultArtifactResolver
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements ArtifactResolver


Field Summary
protected  ArtifactFactory artifactFactory
           
 
Fields inherited from interface org.apache.maven.artifact.resolver.ArtifactResolver
ROLE
 
Constructor Summary
DefaultArtifactResolver()
           
 
Method Summary
 void configureNumberOfThreads(int threads)
           
 void resolve(Artifact artifact, List remoteRepositories, ArtifactRepository localRepository)
           
 void resolveAlways(Artifact artifact, List remoteRepositories, ArtifactRepository localRepository)
           
 ArtifactResolutionResult resolveTransitively(Set artifacts, Artifact originatingArtifact, ArtifactRepository localRepository, List remoteRepositories, ArtifactMetadataSource source, ArtifactFilter filter)
           
 ArtifactResolutionResult resolveTransitively(Set artifacts, Artifact originatingArtifact, List remoteRepositories, ArtifactRepository localRepository, ArtifactMetadataSource source)
           
 ArtifactResolutionResult resolveTransitively(Set artifacts, Artifact originatingArtifact, List remoteRepositories, ArtifactRepository localRepository, ArtifactMetadataSource source, List listeners)
           
 ArtifactResolutionResult resolveTransitively(Set artifacts, Artifact originatingArtifact, Map managedVersions, ArtifactRepository localRepository, List remoteRepositories, ArtifactMetadataSource source)
           
 ArtifactResolutionResult resolveTransitively(Set artifacts, Artifact originatingArtifact, Map managedVersions, ArtifactRepository localRepository, List remoteRepositories, ArtifactMetadataSource source, ArtifactFilter filter)
           
 ArtifactResolutionResult resolveTransitively(Set artifacts, Artifact originatingArtifact, Map managedVersions, ArtifactRepository localRepository, List remoteRepositories, ArtifactMetadataSource source, ArtifactFilter filter, List listeners)
           
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

artifactFactory

protected ArtifactFactory artifactFactory
Constructor Detail

DefaultArtifactResolver

public DefaultArtifactResolver()
Method Detail

resolve

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

resolveAlways

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

resolveTransitively

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

resolveTransitively

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

resolveTransitively

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

resolveTransitively

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

resolveTransitively

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

resolveTransitively

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

configureNumberOfThreads

public void configureNumberOfThreads(int threads)


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