Class MavenDependencyContextRefiner

java.lang.Object
org.apache.maven.repository.internal.scopes.MavenDependencyContextRefiner
All Implemented Interfaces:
org.eclipse.aether.collection.DependencyGraphTransformer

public final class MavenDependencyContextRefiner extends Object implements org.eclipse.aether.collection.DependencyGraphTransformer
A dependency graph transformer that refines the request context for nodes that belong to the "project" context by appending the buildpath type to which the node belongs. For instance, a compile-time project dependency will be assigned the request context "project/compile".
Since:
4.0.0
See Also:
  • DependencyNode.getRequestContext()
  • Constructor Details

    • MavenDependencyContextRefiner

      public MavenDependencyContextRefiner()
  • Method Details

    • transformGraph

      public org.eclipse.aether.graph.DependencyNode transformGraph(org.eclipse.aether.graph.DependencyNode node, org.eclipse.aether.collection.DependencyGraphTransformationContext context) throws org.eclipse.aether.RepositoryException
      Specified by:
      transformGraph in interface org.eclipse.aether.collection.DependencyGraphTransformer
      Throws:
      org.eclipse.aether.RepositoryException