public final class JavaScopeSelector extends ConflictResolver.ScopeSelector
Constructor and Description |
---|
JavaScopeSelector() |
Modifier and Type | Method and Description |
---|---|
void |
selectScope(ConflictResolver.ConflictContext context)
Determines the effective scope of the dependency given by
ConflictResolver.ConflictContext.getWinner() . |
getInstance
public void selectScope(ConflictResolver.ConflictContext context) throws org.sonatype.aether.RepositoryException
ConflictResolver.ScopeSelector
ConflictResolver.ConflictContext.getWinner()
.
Implementations will usually iterate ConflictResolver.ConflictContext.getItems()
, inspect
ConflictResolver.ConflictItem.getScopes()
and eventually call ConflictResolver.ConflictContext.setScope(String)
to deliver the
effective scope.selectScope
in class ConflictResolver.ScopeSelector
context
- The conflict context, must not be null
.org.sonatype.aether.RepositoryException
- If the scope selection failed.Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.