public final class NearestVersionSelector extends ConflictResolver.VersionSelector
| Constructor and Description |
|---|
NearestVersionSelector() |
| Modifier and Type | Method and Description |
|---|---|
void |
selectVersion(ConflictResolver.ConflictContext context)
Determines the winning node among conflicting dependencies.
|
getInstancepublic void selectVersion(ConflictResolver.ConflictContext context) throws org.sonatype.aether.RepositoryException
ConflictResolver.VersionSelectorConflictResolver.ConflictContext.getItems(), inspect ConflictResolver.ConflictItem.getNode() and eventually call
ConflictResolver.ConflictContext.setWinner(ConflictResolver.ConflictItem) to deliver the winner. Failure to select a
winner will automatically fail the entire conflict resolution.selectVersion in class ConflictResolver.VersionSelectorcontext - The conflict context, must not be null.org.sonatype.aether.RepositoryException - If the version selection failed.Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.