org.apache.maven.plugin.surefire
Class SurefireDependencyResolver

java.lang.Object
  extended by org.apache.maven.plugin.surefire.SurefireDependencyResolver

public class SurefireDependencyResolver
extends Object

Does dependency resolution and artifact handling for the surefire plugin.

Author:
Stephen Connolly, Kristian Rosenvold

Constructor Summary
protected SurefireDependencyResolver(org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver, org.apache.maven.artifact.factory.ArtifactFactory artifactFactory, org.apache.maven.plugin.logging.Log log, org.apache.maven.artifact.repository.ArtifactRepository localRepository, List remoteRepositories, org.apache.maven.artifact.metadata.ArtifactMetadataSource artifactMetadataSource, String pluginName)
           
 
Method Summary
 Classpath addProviderToClasspath(Map pluginArtifactMap, org.apache.maven.artifact.Artifact surefireArtifact)
           
 Classpath getProviderClasspath(String provider, String version, org.apache.maven.artifact.Artifact filteredArtifact)
           
 boolean isWithinVersionSpec(org.apache.maven.artifact.Artifact artifact, String versionSpec)
           
 org.apache.maven.artifact.resolver.ArtifactResolutionResult resolveArtifact(org.apache.maven.artifact.Artifact filteredArtifact, org.apache.maven.artifact.Artifact providerArtifact)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SurefireDependencyResolver

protected SurefireDependencyResolver(org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver,
                                     org.apache.maven.artifact.factory.ArtifactFactory artifactFactory,
                                     org.apache.maven.plugin.logging.Log log,
                                     org.apache.maven.artifact.repository.ArtifactRepository localRepository,
                                     List remoteRepositories,
                                     org.apache.maven.artifact.metadata.ArtifactMetadataSource artifactMetadataSource,
                                     String pluginName)
Method Detail

isWithinVersionSpec

public boolean isWithinVersionSpec(org.apache.maven.artifact.Artifact artifact,
                                   String versionSpec)

resolveArtifact

public org.apache.maven.artifact.resolver.ArtifactResolutionResult resolveArtifact(org.apache.maven.artifact.Artifact filteredArtifact,
                                                                                   org.apache.maven.artifact.Artifact providerArtifact)
                                                                            throws org.apache.maven.artifact.resolver.ArtifactResolutionException,
                                                                                   org.apache.maven.artifact.resolver.ArtifactNotFoundException
Throws:
org.apache.maven.artifact.resolver.ArtifactResolutionException
org.apache.maven.artifact.resolver.ArtifactNotFoundException

getProviderClasspath

public Classpath getProviderClasspath(String provider,
                                      String version,
                                      org.apache.maven.artifact.Artifact filteredArtifact)
                               throws org.apache.maven.artifact.resolver.ArtifactNotFoundException,
                                      org.apache.maven.artifact.resolver.ArtifactResolutionException
Throws:
org.apache.maven.artifact.resolver.ArtifactNotFoundException
org.apache.maven.artifact.resolver.ArtifactResolutionException

addProviderToClasspath

public Classpath addProviderToClasspath(Map pluginArtifactMap,
                                        org.apache.maven.artifact.Artifact surefireArtifact)
                                 throws org.apache.maven.artifact.resolver.ArtifactResolutionException,
                                        org.apache.maven.artifact.resolver.ArtifactNotFoundException
Throws:
org.apache.maven.artifact.resolver.ArtifactResolutionException
org.apache.maven.artifact.resolver.ArtifactNotFoundException


Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.