public interface DependencyGraphBuilder
Modifier and Type | Method and Description |
---|---|
DependencyNode |
buildDependencyGraph(MavenProject project,
ArtifactFilter filter)
Build the dependency graph.
|
DependencyNode |
buildDependencyGraph(MavenProject project,
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(MavenProject project, ArtifactFilter filter) throws DependencyGraphBuilderException
project
- the projectfilter
- artifact filter (can be null
)DependencyGraphBuilderException
- if some of the dependencies could not be resolved.DependencyNode buildDependencyGraph(MavenProject project, 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.
project
- the projectfilter
- 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–2014 The Apache Software Foundation. All rights reserved.