Class NearestVersionSelector
java.lang.Object
org.eclipse.aether.util.graph.transformer.ConflictResolver.VersionSelector
org.eclipse.aether.util.graph.transformer.NearestVersionSelector
Deprecated.
A version selector for use with 
ConflictResolver that resolves version conflicts using a nearest-wins
 strategy. If there is no single node that satisfies all encountered version ranges, the selector will fail.- 
Constructor SummaryConstructorsConstructorDescriptionDeprecated.Creates a new instance of this version selector.
- 
Method SummaryModifier and TypeMethodDescriptionvoidDeprecated.Determines the winning node among conflicting dependencies.Methods inherited from class org.eclipse.aether.util.graph.transformer.ConflictResolver.VersionSelectorgetInstance
- 
Constructor Details- 
NearestVersionSelectorpublic NearestVersionSelector()Deprecated.Creates a new instance of this version selector.
 
- 
- 
Method Details- 
selectVersionDeprecated.Description copied from class:ConflictResolver.VersionSelectorDetermines the winning node among conflicting dependencies. Implementations will usually iterateConflictResolver.ConflictContext.getItems(), inspectConflictResolver.ConflictItem.getNode()and eventually callConflictResolver.ConflictContext.setWinner(ConflictResolver.ConflictItem)to deliver the winner. Failure to select a winner will automatically fail the entire conflict resolution.- Specified by:
- selectVersionin class- ConflictResolver.VersionSelector
- Parameters:
- context- the conflict context, must not be- null
- Throws:
- RepositoryException- if the version selection failed
 
 
- 
ConfigurableVersionSelectorinstead