Interface DependencyCollector


public interface DependencyCollector
Will only download the pom files when not available, never the artifact.
Author:
Robert Scholte
  • Method Summary

    Modifier and Type
    Method
    Description
    collectDependencies(org.apache.maven.project.ProjectBuildingRequest buildingRequest, org.apache.maven.model.Dependency root)
    Collects the transitive dependencies of some artifacts and builds a dependency graph.
    collectDependencies(org.apache.maven.project.ProjectBuildingRequest buildingRequest, org.apache.maven.model.Model root)
    Collects the transitive dependencies of some artifacts and builds a dependency graph.
    collectDependencies(org.apache.maven.project.ProjectBuildingRequest buildingRequest, DependableCoordinate root)
    Collects the transitive dependencies of some artifacts and builds a dependency graph.
  • Method Details

    • collectDependencies

      CollectResult collectDependencies(org.apache.maven.project.ProjectBuildingRequest buildingRequest, org.apache.maven.model.Dependency root) throws DependencyCollectionException
      Collects the transitive dependencies of some artifacts and builds a dependency graph. Note that this operation is only concerned about determining the coordinates of the transitive dependencies and does not actually resolve the artifact files. The supplied session carries various hooks to customize the dependency graph that must be invoked throughout the operation.
      Parameters:
      buildingRequest - The Maven project buildingrequest, must not be null.
      root - The Maven Dependency, must not be null.
      Returns:
      The collection result, never null.
      Throws:
      DependencyCollectionException - If the dependency tree could not be built.
    • collectDependencies

      CollectResult collectDependencies(org.apache.maven.project.ProjectBuildingRequest buildingRequest, DependableCoordinate root) throws DependencyCollectionException
      Collects the transitive dependencies of some artifacts and builds a dependency graph. Note that this operation is only concerned about determining the coordinates of the transitive dependencies and does not actually resolve the artifact files. The supplied session carries various hooks to customize the dependency graph that must be invoked throughout the operation.
      Parameters:
      buildingRequest - The Maven project buildingrequest, must not be null.
      root - The Maven DependableCoordinate, must not be null.
      Returns:
      The collection result, never null.
      Throws:
      DependencyCollectionException - If the dependency tree could not be built.
    • collectDependencies

      CollectResult collectDependencies(org.apache.maven.project.ProjectBuildingRequest buildingRequest, org.apache.maven.model.Model root) throws DependencyCollectionException
      Collects the transitive dependencies of some artifacts and builds a dependency graph. Note that this operation is only concerned about determining the coordinates of the transitive dependencies and does not actually resolve the artifact files. The supplied session carries various hooks to customize the dependency graph that must be invoked throughout the operation.
      Parameters:
      buildingRequest - The Maven project buildingrequest, must not be null.
      root - The Maven model, must not be null.
      Returns:
      The collection result, never null.
      Throws:
      DependencyCollectionException - If the dependency tree could not be built.