Class DefaultDependencyTreeBuilder

    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      DependencyNode buildDependencyTree​(org.apache.maven.project.MavenProject project)
      Builds a dependency tree.
      DependencyTree buildDependencyTree​(org.apache.maven.project.MavenProject project, org.apache.maven.artifact.repository.ArtifactRepository repository, org.apache.maven.artifact.factory.ArtifactFactory factory, org.apache.maven.artifact.metadata.ArtifactMetadataSource metadataSource, org.apache.maven.artifact.resolver.ArtifactCollector collector)
      Deprecated. 
      DependencyNode buildDependencyTree​(org.apache.maven.project.MavenProject project, org.apache.maven.artifact.repository.ArtifactRepository repository, org.apache.maven.artifact.factory.ArtifactFactory factory, org.apache.maven.artifact.metadata.ArtifactMetadataSource metadataSource, org.apache.maven.artifact.resolver.filter.ArtifactFilter filter, org.apache.maven.artifact.resolver.ArtifactCollector collector)
      Builds a tree of dependencies for the specified Maven project.
      DependencyNode buildDependencyTree​(org.apache.maven.project.MavenProject project, org.apache.maven.artifact.repository.ArtifactRepository repository, org.apache.maven.artifact.resolver.filter.ArtifactFilter filter)
      Builds a dependency tree.
      protected org.apache.maven.artifact.resolver.ArtifactResolutionResult getArtifactResolutionResult()  
      • 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

      • DefaultDependencyTreeBuilder

        public DefaultDependencyTreeBuilder()
    • Method Detail

      • buildDependencyTree

        public DependencyTree buildDependencyTree​(org.apache.maven.project.MavenProject project,
                                                  org.apache.maven.artifact.repository.ArtifactRepository repository,
                                                  org.apache.maven.artifact.factory.ArtifactFactory factory,
                                                  org.apache.maven.artifact.metadata.ArtifactMetadataSource metadataSource,
                                                  org.apache.maven.artifact.resolver.ArtifactCollector collector)
                                           throws DependencyTreeBuilderException
        Deprecated.
        Builds a tree of dependencies for the specified Maven project.
        Specified by:
        buildDependencyTree in interface DependencyTreeBuilder
        Parameters:
        project - the Maven project
        repository - the artifact repository to resolve against
        factory - the artifact factory to use
        metadataSource - the artifact metadata source to use
        collector - the artifact collector to use
        Returns:
        the dependency tree of the specified Maven project
        Throws:
        DependencyTreeBuilderException - if the dependency tree cannot be resolved
      • buildDependencyTree

        public DependencyNode buildDependencyTree​(org.apache.maven.project.MavenProject project,
                                                  org.apache.maven.artifact.repository.ArtifactRepository repository,
                                                  org.apache.maven.artifact.factory.ArtifactFactory factory,
                                                  org.apache.maven.artifact.metadata.ArtifactMetadataSource metadataSource,
                                                  org.apache.maven.artifact.resolver.filter.ArtifactFilter filter,
                                                  org.apache.maven.artifact.resolver.ArtifactCollector collector)
                                           throws DependencyTreeBuilderException
        Builds a tree of dependencies for the specified Maven project.
        Specified by:
        buildDependencyTree in interface DependencyTreeBuilder
        Parameters:
        project - the Maven project
        repository - the artifact repository to resolve against
        factory - the artifact factory to use
        metadataSource - the artifact metadata source to use
        filter - the artifact filter to use
        collector - the artifact collector to use
        Returns:
        the dependency tree root node of the specified Maven project
        Throws:
        DependencyTreeBuilderException - if the dependency tree cannot be resolved
      • buildDependencyTree

        public DependencyNode buildDependencyTree​(org.apache.maven.project.MavenProject project,
                                                  org.apache.maven.artifact.repository.ArtifactRepository repository,
                                                  org.apache.maven.artifact.resolver.filter.ArtifactFilter filter)
                                           throws DependencyTreeBuilderException
        Builds a dependency tree.
        Specified by:
        buildDependencyTree in interface DependencyTreeBuilder
        Parameters:
        project - MavenProject for which ot build the dependency tree.
        repository - ArtifactRepository to search fro dependencies.
        filter - Filter to apply when searching for dependencies.
        Returns:
        DependencyNode containing the dependency tree for the project.
        Throws:
        DependencyTreeBuilderException - if the dependency tree could not be built.
      • getArtifactResolutionResult

        protected org.apache.maven.artifact.resolver.ArtifactResolutionResult getArtifactResolutionResult()