Class JavaScopeDeriver
java.lang.Object
org.eclipse.aether.util.graph.transformer.ConflictResolver.ScopeDeriver
org.eclipse.aether.util.graph.transformer.JavaScopeDeriver
A scope deriver for use with
ConflictResolver
that supports the scopes from JavaScopes
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deriveScope
(ConflictResolver.ScopeContext context) Determines the scope of a dependency in relation to the scope of its parent.Methods inherited from class org.eclipse.aether.util.graph.transformer.ConflictResolver.ScopeDeriver
getInstance
-
Constructor Details
-
JavaScopeDeriver
public JavaScopeDeriver()Creates a new instance of this scope deriver.
-
-
Method Details
-
deriveScope
public void deriveScope(ConflictResolver.ScopeContext context) throws org.eclipse.aether.RepositoryException Description copied from class:ConflictResolver.ScopeDeriver
Determines the scope of a dependency in relation to the scope of its parent. Implementors need to callConflictResolver.ScopeContext.setDerivedScope(String)
to deliver the result of their calculation. If said method is not invoked, the conflict resolver will assume the scope of the child dependency remains unchanged.- Specified by:
deriveScope
in classConflictResolver.ScopeDeriver
- Parameters:
context
- The scope context, must not benull
.- Throws:
org.eclipse.aether.RepositoryException
- If the scope deriviation failed.
-