@Component(role=DependencyCollector.class, hint="default") public class DefaultDependencyCollector extends Object implements DependencyCollector, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Constructor and Description |
---|
DefaultDependencyCollector() |
Modifier and Type | Method and Description |
---|---|
CollectorResult |
collectDependencies(ProjectBuildingRequest buildingRequest,
DependableCoordinate root) |
CollectorResult |
collectDependencies(ProjectBuildingRequest buildingRequest,
org.apache.maven.model.Dependency root)
A dependency may have excludes
|
CollectorResult |
collectDependencies(ProjectBuildingRequest buildingRequest,
org.apache.maven.model.Model root) |
void |
contextualize(org.codehaus.plexus.context.Context context)
Injects the Plexus content.
|
protected static boolean |
isMaven31() |
public CollectorResult collectDependencies(ProjectBuildingRequest buildingRequest, org.apache.maven.model.Dependency root) throws DependencyCollectorException
DependencyCollector
collectDependencies
in interface DependencyCollector
buildingRequest
- ProjectBuildingRequest
root
- Dependency
CollectorResult
DependencyCollectorException
- in case of an error.public CollectorResult collectDependencies(ProjectBuildingRequest buildingRequest, DependableCoordinate root) throws DependencyCollectorException
collectDependencies
in interface DependencyCollector
buildingRequest
- ProjectBuildingRequest
.root
- DependableCoordinate
CollectorResult
DependencyCollectorException
- in case of an error which can be a component lookup error or
an error while trying to look up the dependencies.public CollectorResult collectDependencies(ProjectBuildingRequest buildingRequest, org.apache.maven.model.Model root) throws DependencyCollectorException
collectDependencies
in interface DependencyCollector
buildingRequest
- ProjectBuildingRequest
.root
- Model
CollectorResult
DependencyCollectorException
- in case of an error which can be a component lookup error or
an error while trying to look up the dependencies.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–2017 The Apache Software Foundation. All rights reserved.