DependencyGraphBuilder
, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
@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 | Description |
---|---|---|
protected org.codehaus.plexus.PlexusContainer |
container |
Constructor | Description |
---|---|
DefaultDependencyGraphBuilder() |
Modifier and Type | Method | Description |
---|---|---|
DependencyNode |
buildDependencyGraph(org.apache.maven.project.ProjectBuildingRequest buildingRequest,
org.apache.maven.artifact.resolver.filter.ArtifactFilter filter) |
Builds a dependency graph.
|
DependencyNode |
buildDependencyGraph(org.apache.maven.project.ProjectBuildingRequest buildingRequest,
org.apache.maven.artifact.resolver.filter.ArtifactFilter filter,
java.util.Collection<org.apache.maven.project.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(org.apache.maven.project.ProjectBuildingRequest buildingRequest, org.apache.maven.artifact.resolver.filter.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(org.apache.maven.project.ProjectBuildingRequest buildingRequest, org.apache.maven.artifact.resolver.filter.ArtifactFilter filter, java.util.Collection<org.apache.maven.project.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.