Interface DependencyCollectorBuilder

All Known Implementing Classes:
DefaultDependencyCollectorBuilder

public interface DependencyCollectorBuilder
Maven project dependency raw dependency collector API, providing an abstraction layer against Maven 3 and Maven 3.1+ particular Aether implementations.
Since:
3.1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    collectDependencyGraph(org.apache.maven.project.ProjectBuildingRequest buildingRequest, org.apache.maven.artifact.resolver.filter.ArtifactFilter filter)
    collect the project's raw dependency graph, with information to allow the API client to reason on its own about dependencies.
    collect the project's raw dependency graph, with information to allow the API client to reason on its own about dependencies.
  • Method Details

    • collectDependencyGraph

      default DependencyNode collectDependencyGraph(org.apache.maven.project.ProjectBuildingRequest buildingRequest, org.apache.maven.artifact.resolver.filter.ArtifactFilter filter) throws DependencyCollectorBuilderException
      collect the project's raw dependency graph, with information to allow the API client to reason on its own about dependencies.
      Parameters:
      buildingRequest - the request with the project to process its dependencies.
      filter - an artifact filter if not all dependencies are required (can be null)
      Returns:
      the raw dependency tree
      Throws:
      DependencyCollectorBuilderException - if some of the dependencies could not be collected.
    • collectDependencyGraph

      DependencyNode collectDependencyGraph(DependencyCollectorRequest dependencyCollectorRequest) throws DependencyCollectorBuilderException
      collect the project's raw dependency graph, with information to allow the API client to reason on its own about dependencies.
      Parameters:
      dependencyCollectorRequest - the request with different paramaters.
      Returns:
      the raw dependency tree
      Throws:
      DependencyCollectorBuilderException - if some of the dependencies could not be collected.
      Since:
      3.2.1