Class Maven2DependencyGraphBuilder

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DependencyNode buildDependencyGraph​(org.apache.maven.project.MavenProject project, org.apache.maven.artifact.resolver.filter.ArtifactFilter filter)
      Builds the dependency graph for Maven 2.
      DependencyNode buildDependencyGraph​(org.apache.maven.project.MavenProject project, org.apache.maven.artifact.resolver.filter.ArtifactFilter filter, java.util.Collection<org.apache.maven.project.MavenProject> reactorProjects)
      Builds the dependency graph for Maven 2.
      • 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

      • Maven2DependencyGraphBuilder

        public Maven2DependencyGraphBuilder()
    • Method Detail

      • buildDependencyGraph

        public DependencyNode buildDependencyGraph​(org.apache.maven.project.MavenProject project,
                                                   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 2.

        notice: the reactor projects are ignored as no work has been done to try to do the same hack as with Maven 3.

        Specified by:
        buildDependencyGraph in interface DependencyGraphBuilder
        Parameters:
        project - the project
        filter - artifact filter (can be null)
        reactorProjects - Ignored.
        Returns:
        DependencyNode containing the dependency graph.
        Throws:
        DependencyGraphBuilderException - if some of the dependencies could not be resolved.