@Component(role=DependencyCollectorBuilder.class) public class DefaultDependencyCollectorBuilder extends org.codehaus.plexus.logging.AbstractLogEnabled implements DependencyCollectorBuilder, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Modifier and Type | Field and Description |
---|---|
protected org.codehaus.plexus.PlexusContainer |
container |
Constructor and Description |
---|
DefaultDependencyCollectorBuilder() |
Modifier and Type | Method and Description |
---|---|
DependencyNode |
collectDependencyGraph(org.apache.maven.project.ProjectBuildingRequest buildingRequest,
org.apache.maven.artifact.resolver.filter.ArtifactFilter filter)
collect the project's raw dependency graph, with information to allow the API client to reason on its own about
dependencies.
|
void |
contextualize(org.codehaus.plexus.context.Context context)
Injects the Plexus content.
|
protected static boolean |
isMaven31() |
public DependencyNode collectDependencyGraph(org.apache.maven.project.ProjectBuildingRequest buildingRequest, org.apache.maven.artifact.resolver.filter.ArtifactFilter filter) throws DependencyCollectorBuilderException
DependencyCollectorBuilder
collectDependencyGraph
in interface DependencyCollectorBuilder
buildingRequest
- the request with the project to process its dependencies.filter
- an artifact filter if not all dependencies are required (can be null
)DependencyCollectorBuilderException
- if some of the dependencies could not be collected.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–2022 The Apache Software Foundation. All rights reserved.