Class MavenScopeSelector

java.lang.Object
org.eclipse.aether.util.graph.transformer.ConflictResolver.ScopeSelector
org.apache.maven.repository.internal.scopes.MavenScopeSelector

public final class MavenScopeSelector extends org.eclipse.aether.util.graph.transformer.ConflictResolver.ScopeSelector
A scope selector for use with ConflictResolver that supports the scopes from MavenDependencyScopes. In general, this selector picks the widest scope present among conflicting dependencies where e.g. "compile" is wider than "runtime" which is wider than "test". If however a direct dependency is involved, its scope is selected.
Since:
4.0.0
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    selectScope(org.eclipse.aether.util.graph.transformer.ConflictResolver.ConflictContext context)
     

    Methods inherited from class org.eclipse.aether.util.graph.transformer.ConflictResolver.ScopeSelector

    getInstance

    Methods inherited from class java.lang.Object

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

    • MavenScopeSelector

      public MavenScopeSelector()
  • Method Details

    • selectScope

      public void selectScope(org.eclipse.aether.util.graph.transformer.ConflictResolver.ConflictContext context) throws org.eclipse.aether.RepositoryException
      Specified by:
      selectScope in class org.eclipse.aether.util.graph.transformer.ConflictResolver.ScopeSelector
      Throws:
      org.eclipse.aether.RepositoryException