Class DependencyMapBuilder

java.lang.Object
org.basepom.mojo.dvc.dependency.DependencyMapBuilder

public final class DependencyMapBuilder extends Object
Builds a map of dependencies required by a specific project or another dependency.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    mapDependency(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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DependencyMapBuilder

      public DependencyMapBuilder(Context context)
  • 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.