Class DefaultDependencyCollectorBuilder

  • All Implemented Interfaces:
    DependencyCollectorBuilder

    @Named
    public class DefaultDependencyCollectorBuilder
    extends java.lang.Object
    implements DependencyCollectorBuilder
    Project dependency raw dependency collector API, abstracting Maven 3.1+'s Aether implementation.
    Since:
    3.1.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static org.slf4j.Logger LOGGER  
      private org.eclipse.aether.RepositorySystem repositorySystem  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private DependencyNode buildDependencyNode​(DependencyNode parent, org.eclipse.aether.graph.DependencyNode node, org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.resolver.filter.ArtifactFilter filter)  
      DependencyNode collectDependencyGraph​(DependencyCollectorRequest dependencyCollectorRequest)
      collect the project's raw dependency graph, with information to allow the API client to reason on its own about dependencies.
      private void collectDependencyList​(org.eclipse.aether.collection.CollectRequest collectRequest, org.apache.maven.project.MavenProject project, org.eclipse.aether.artifact.ArtifactTypeRegistry stereotypes)  
      private void collectManagedDependencyList​(org.eclipse.aether.collection.CollectRequest collectRequest, org.apache.maven.project.MavenProject project, org.eclipse.aether.artifact.ArtifactTypeRegistry stereotypes)  
      private org.apache.maven.artifact.Artifact getDependencyArtifact​(org.eclipse.aether.graph.Dependency dep)  
      private java.lang.String getVersionSelectedFromRange​(org.eclipse.aether.version.VersionConstraint constraint)  
      private void logTree​(org.eclipse.aether.graph.DependencyNode rootNode)  
      • Methods inherited from class java.lang.Object

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

      • LOGGER

        private static final org.slf4j.Logger LOGGER
      • repositorySystem

        private final org.eclipse.aether.RepositorySystem repositorySystem
    • Constructor Detail

      • DefaultDependencyCollectorBuilder

        @Inject
        public DefaultDependencyCollectorBuilder​(org.eclipse.aether.RepositorySystem repositorySystem)
    • Method Detail

      • logTree

        private void logTree​(org.eclipse.aether.graph.DependencyNode rootNode)
      • collectManagedDependencyList

        private void collectManagedDependencyList​(org.eclipse.aether.collection.CollectRequest collectRequest,
                                                  org.apache.maven.project.MavenProject project,
                                                  org.eclipse.aether.artifact.ArtifactTypeRegistry stereotypes)
      • collectDependencyList

        private void collectDependencyList​(org.eclipse.aether.collection.CollectRequest collectRequest,
                                           org.apache.maven.project.MavenProject project,
                                           org.eclipse.aether.artifact.ArtifactTypeRegistry stereotypes)
      • getDependencyArtifact

        private org.apache.maven.artifact.Artifact getDependencyArtifact​(org.eclipse.aether.graph.Dependency dep)
      • buildDependencyNode

        private DependencyNode buildDependencyNode​(DependencyNode parent,
                                                   org.eclipse.aether.graph.DependencyNode node,
                                                   org.apache.maven.artifact.Artifact artifact,
                                                   org.apache.maven.artifact.resolver.filter.ArtifactFilter filter)
      • getVersionSelectedFromRange

        private java.lang.String getVersionSelectedFromRange​(org.eclipse.aether.version.VersionConstraint constraint)