@Component(role=DependencyGraphBuilder.class) public class DefaultDependencyGraphBuilder extends org.codehaus.plexus.logging.AbstractLogEnabled implements DependencyGraphBuilder, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Maven2DependencyGraphBuilder
,
Maven3DependencyGraphBuilder
Modifier and Type | Field and Description |
---|---|
protected org.codehaus.plexus.PlexusContainer |
container |
Constructor and Description |
---|
DefaultDependencyGraphBuilder() |
Modifier and Type | Method and Description |
---|---|
DependencyNode |
buildDependencyGraph(MavenProject project,
ArtifactFilter filter)
Builds a dependency graph.
|
DependencyNode |
buildDependencyGraph(MavenProject project,
ArtifactFilter filter,
Collection<MavenProject> reactorProjects)
Builds a dependency graph.
|
void |
contextualize(org.codehaus.plexus.context.Context context)
Injects the Plexus content.
|
protected static boolean |
isMaven2x() |
protected static boolean |
isMaven31() |
public DependencyNode buildDependencyGraph(MavenProject project, ArtifactFilter filter) throws DependencyGraphBuilderException
buildDependencyGraph
in interface DependencyGraphBuilder
project
- the projectfilter
- artifact filter (can be null
)DependencyGraphBuilderException
- if some of the dependencies could not be resolved.public DependencyNode buildDependencyGraph(MavenProject project, ArtifactFilter filter, Collection<MavenProject> reactorProjects) throws DependencyGraphBuilderException
buildDependencyGraph
in interface DependencyGraphBuilder
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.protected static boolean isMaven2x()
protected static boolean isMaven31()
public void contextualize(org.codehaus.plexus.context.Context context) throws org.codehaus.plexus.context.ContextException
contextualize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
context
- Plexus context to inject.org.codehaus.plexus.context.ContextException
- if the PlexusContainer could not be located.Copyright © 2002–2014 The Apache Software Foundation. All rights reserved.