Interface DependencyCollector

  • All Known Implementing Classes:
    DefaultDependencyCollector

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      CollectResult 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.
      CollectResult 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.
      CollectResult collectDependencies​(org.apache.maven.project.ProjectBuildingRequest buildingRequest, DependableCoordinate root)
      Collects the transitive dependencies of some artifacts and builds a dependency graph.
    • Method Detail

      • 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.