Class JavaScopeDeriver
- java.lang.Object
-
- org.eclipse.aether.util.graph.transformer.ConflictResolver.ScopeDeriver
-
- org.eclipse.aether.util.graph.transformer.JavaScopeDeriver
-
public final class JavaScopeDeriver extends ConflictResolver.ScopeDeriver
A scope deriver for use withConflictResolverthat supports the scopes fromJavaScopes.
-
-
Constructor Summary
Constructors Constructor Description JavaScopeDeriver()Creates a new instance of this scope deriver.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidderiveScope(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 Detail
-
JavaScopeDeriver
public JavaScopeDeriver()
Creates a new instance of this scope deriver.
-
-
Method Detail
-
deriveScope
public void deriveScope(ConflictResolver.ScopeContext context) throws RepositoryException
Description copied from class:ConflictResolver.ScopeDeriverDetermines 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:
deriveScopein classConflictResolver.ScopeDeriver- Parameters:
context- The scope context, must not benull.- Throws:
RepositoryException- If the scope deriviation failed.
-
-