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
- Author:
- Gabriel Belingueres
-
Method Summary
Modifier and TypeMethodDescriptiondefault DependencyNode
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.collectDependencyGraph
(DependencyCollectorRequest dependencyCollectorRequest) 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 benull
)- Returns:
- the raw dependency tree
- Throws:
DependencyCollectorBuilderException
- if some of the dependencies could not be collected.
-