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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
selectScope
(org.eclipse.aether.util.graph.transformer.ConflictResolver.ConflictContext context) Methods inherited from class org.eclipse.aether.util.graph.transformer.ConflictResolver.ScopeSelector
getInstance
-
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 classorg.eclipse.aether.util.graph.transformer.ConflictResolver.ScopeSelector
- Throws:
org.eclipse.aether.RepositoryException
-