Interface DependencyCollector
-
- All Known Implementing Classes:
DefaultDependencyCollector
public interface DependencyCollector
Will only download the pom files when not available, never the artifact.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CollectResult
collectDependencies(org.apache.maven.project.ProjectBuildingRequest buildingRequest, org.apache.maven.model.Dependency root)
Collects the transitive dependencies of some artifacts and builds a dependency graph.CollectResult
collectDependencies(org.apache.maven.project.ProjectBuildingRequest buildingRequest, org.apache.maven.model.Model root)
Collects the transitive dependencies of some artifacts and builds a dependency graph.CollectResult
collectDependencies(org.apache.maven.project.ProjectBuildingRequest buildingRequest, DependableCoordinate root)
Collects the transitive dependencies of some artifacts and builds a dependency graph.
-
-
-
Method Detail
-
collectDependencies
CollectResult collectDependencies(org.apache.maven.project.ProjectBuildingRequest buildingRequest, org.apache.maven.model.Dependency root) throws DependencyCollectionException
Collects the transitive dependencies of some artifacts and builds a dependency graph. Note that this operation is only concerned about determining the coordinates of the transitive dependencies and does not actually resolve the artifact files. The supplied session carries various hooks to customize the dependency graph that must be invoked throughout the operation.- Parameters:
buildingRequest
- The Maven project buildingrequest, must not benull
.root
- The Maven Dependency, must not benull
.- Returns:
- The collection result, never
null
. - Throws:
DependencyCollectionException
- If the dependency tree could not be built.
-
collectDependencies
CollectResult collectDependencies(org.apache.maven.project.ProjectBuildingRequest buildingRequest, DependableCoordinate root) throws DependencyCollectionException
Collects the transitive dependencies of some artifacts and builds a dependency graph. Note that this operation is only concerned about determining the coordinates of the transitive dependencies and does not actually resolve the artifact files. The supplied session carries various hooks to customize the dependency graph that must be invoked throughout the operation.- Parameters:
buildingRequest
- The Maven project buildingrequest, must not benull
.root
- The Maven DependableCoordinate, must not benull
.- Returns:
- The collection result, never
null
. - Throws:
DependencyCollectionException
- If the dependency tree could not be built.
-
collectDependencies
CollectResult collectDependencies(org.apache.maven.project.ProjectBuildingRequest buildingRequest, org.apache.maven.model.Model root) throws DependencyCollectionException
Collects the transitive dependencies of some artifacts and builds a dependency graph. Note that this operation is only concerned about determining the coordinates of the transitive dependencies and does not actually resolve the artifact files. The supplied session carries various hooks to customize the dependency graph that must be invoked throughout the operation.- Parameters:
buildingRequest
- The Maven project buildingrequest, must not benull
.root
- The Maven model, must not benull
.- Returns:
- The collection result, never
null
. - Throws:
DependencyCollectionException
- If the dependency tree could not be built.
-
-