Class SurefireDependencyResolver


  • @Named
    @Singleton
    public class SurefireDependencyResolver
    extends java.lang.Object
    Internal component used by the surefire plugin. Not a public API. not guaranteed to remain unchanged across surefire plugin versions. Does dependency resolution and artifact handling for the surefire plugin.
    Author:
    Stephen Connolly, Kristian Rosenvold
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isWithinVersionSpec​(org.apache.maven.artifact.Artifact artifact, java.lang.String versionSpec)  
      java.util.Set<org.apache.maven.artifact.Artifact> resolveArtifacts​(org.eclipse.aether.RepositorySystemSession session, java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories, org.apache.maven.artifact.Artifact artifact)  
      java.util.Set<org.apache.maven.artifact.Artifact> resolveDependencies​(org.eclipse.aether.RepositorySystemSession session, java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories, org.apache.maven.model.Dependency dependency)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isWithinVersionSpec

        public static boolean isWithinVersionSpec​(@Nullable
                                                  org.apache.maven.artifact.Artifact artifact,
                                                  @Nonnull
                                                  java.lang.String versionSpec)
      • resolveArtifacts

        public java.util.Set<org.apache.maven.artifact.Artifact> resolveArtifacts​(org.eclipse.aether.RepositorySystemSession session,
                                                                                  java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories,
                                                                                  org.apache.maven.artifact.Artifact artifact)
                                                                           throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • resolveDependencies

        public java.util.Set<org.apache.maven.artifact.Artifact> resolveDependencies​(org.eclipse.aether.RepositorySystemSession session,
                                                                                     java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories,
                                                                                     org.apache.maven.model.Dependency dependency)
                                                                              throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException