Package org.basepom.mojo.dvc.dependency
Class DependencyMapBuilder
java.lang.Object
org.basepom.mojo.dvc.dependency.DependencyMapBuilder
Builds a map of dependencies required by a specific project or another dependency.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmapDependency
(org.eclipse.aether.graph.DependencyNode dependencyNode, org.eclipse.aether.graph.DependencyFilter projectScopeFilter) Create a map of dependencies for a given dependency node (representing an element on the dependency tree).mapProject
(org.apache.maven.project.MavenProject project, org.eclipse.aether.graph.DependencyFilter scopeFilter) Create a map of names to dependencies for a given project.
-
Constructor Details
-
DependencyMapBuilder
-
-
Method Details
-
mapDependency
public DependencyMap mapDependency(org.eclipse.aether.graph.DependencyNode dependencyNode, org.eclipse.aether.graph.DependencyFilter projectScopeFilter) throws org.apache.maven.project.DependencyResolutionException, org.apache.maven.project.ProjectBuildingException Create a map of dependencies for a given dependency node (representing an element on the dependency tree).- Parameters:
dependencyNode
- The dependency node to use.projectScopeFilter
- A scope limiting filter to mask out dependencies out of scope.- Returns:
- A map of dependencies for this given dependency node.
- Throws:
org.apache.maven.project.DependencyResolutionException
- Dependency resolution failed.org.apache.maven.project.ProjectBuildingException
- Maven project could not be built.
-
mapProject
public DependencyMap mapProject(org.apache.maven.project.MavenProject project, org.eclipse.aether.graph.DependencyFilter scopeFilter) throws org.apache.maven.project.DependencyResolutionException Create a map of names to dependencies for a given project.- Parameters:
project
- The current maven project.scopeFilter
- A scope limiting filter to mask out dependencies out of scope.- Returns:
- A map of dependencies for this given dependency node.
- Throws:
org.apache.maven.project.DependencyResolutionException
- Dependency resolution failed.
-