Class Maven31DependencyGraphBuilder

  • All Implemented Interfaces:
    DependencyGraphBuilder, org.codehaus.plexus.logging.LogEnabled

    @Component(role=DependencyGraphBuilder.class,
               hint="maven31")
    public class Maven31DependencyGraphBuilder
    extends org.codehaus.plexus.logging.AbstractLogEnabled
    implements DependencyGraphBuilder
    Wrapper around Eclipse Aether dependency resolver, used in Maven 3.1.
    Since:
    2.1
    Author:
    Hervé Boutemy
    See Also:
    ProjectDependenciesResolver
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DependencyNode buildDependencyGraph​(org.apache.maven.project.ProjectBuildingRequest buildingRequest, org.apache.maven.artifact.resolver.filter.ArtifactFilter filter)
      Builds the dependency graph for Maven 3.1+.
      DependencyNode buildDependencyGraph​(org.apache.maven.project.ProjectBuildingRequest buildingRequest, org.apache.maven.artifact.resolver.filter.ArtifactFilter filter, java.util.Collection<org.apache.maven.project.MavenProject> reactorProjects)
      Builds the dependency graph for Maven 3.1+, eventually hacking for collecting projects from reactor not yet built.
      • 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
    • Constructor Detail

      • Maven31DependencyGraphBuilder

        public Maven31DependencyGraphBuilder()
    • Method Detail

      • buildDependencyGraph

        public DependencyNode buildDependencyGraph​(org.apache.maven.project.ProjectBuildingRequest buildingRequest,
                                                   org.apache.maven.artifact.resolver.filter.ArtifactFilter filter)
                                            throws DependencyGraphBuilderException
        Builds the dependency graph for Maven 3.1+.
        Specified by:
        buildDependencyGraph in interface DependencyGraphBuilder
        Parameters:
        buildingRequest - the buildingRequest
        filter - artifact filter (can be null)
        Returns:
        DependencyNode containing the dependency graph.
        Throws:
        DependencyGraphBuilderException - if some of the dependencies could not be resolved.
      • buildDependencyGraph

        public DependencyNode buildDependencyGraph​(org.apache.maven.project.ProjectBuildingRequest buildingRequest,
                                                   org.apache.maven.artifact.resolver.filter.ArtifactFilter filter,
                                                   java.util.Collection<org.apache.maven.project.MavenProject> reactorProjects)
                                            throws DependencyGraphBuilderException
        Builds the dependency graph for Maven 3.1+, eventually hacking for collecting projects from reactor not yet built.
        Specified by:
        buildDependencyGraph in interface DependencyGraphBuilder
        Parameters:
        buildingRequest - the buildingRequest
        filter - artifact filter (can be null)
        reactorProjects - Collection of those projects contained in the reactor (can be null).
        Returns:
        DependencyNode containing the dependency graph.
        Throws:
        DependencyGraphBuilderException - if some of the dependencies could not be resolved.