public interface DependencyGraphBuilder
Modifier and Type | Method and Description |
---|---|
DependencyNode |
buildDependencyGraph(ProjectBuildingRequest buildingRequest,
ArtifactFilter filter)
Build the dependency graph.
|
DependencyNode |
buildDependencyGraph(ProjectBuildingRequest buildingRequest,
ArtifactFilter filter,
Collection<MavenProject> reactorProjects)
Build the dependency graph, with a hack to include dependencies contained in the reactor projects
but that are not yet compiled, which is the minimum prerequisite for Maven core's
ReactorReader to find them.
|
DependencyNode buildDependencyGraph(ProjectBuildingRequest buildingRequest, ArtifactFilter filter) throws DependencyGraphBuilderException
buildingRequest
- the buildingRequestfilter
- artifact filter (can be null
)DependencyGraphBuilderException
- if some of the dependencies could not be resolved.DependencyNode buildDependencyGraph(ProjectBuildingRequest buildingRequest, ArtifactFilter filter, Collection<MavenProject> reactorProjects) throws DependencyGraphBuilderException
Notice: If Maven core did collect instead of resolving dependencies (ie did not try to get the artifacts but only the poms), probably this hack wouldn't be necessary even for people requiring the dependency graph before compiling. TODO: for Maven 3, use Aether to collect dependencies.
buildingRequest
- the buildingRequestfilter
- artifact filter (can be null
)reactorProjects
- Collection of those projects contained in the reactor (can be null
).DependencyGraphBuilderException
- if some of the dependencies could not be resolved.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.