@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(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.
|
private static boolean |
canFindCoreClass(java.lang.String className) |
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
filter
- artifact filter (can be null
)reactorProjects
- Collection of those projects contained in the reactor (can be null
)buildingRequest
- the buildingRequestDependencyGraphBuilderException
- if some of the dependencies could not be resolved.protected static boolean isMaven31()
private static boolean canFindCoreClass(java.lang.String className)
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.