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