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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default 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.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.
-
-
-
Method Detail
-
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.
-
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
-
-