@Component(role=ConflictResolver.class, hint="newest") public class NewestConflictResolver extends Object implements ConflictResolver
ArtifactVersion.compareTo
.Comparable.compareTo(T)
ROLE
Constructor and Description |
---|
NewestConflictResolver() |
Modifier and Type | Method and Description |
---|---|
ResolutionNode |
resolveConflict(ResolutionNode node1,
ResolutionNode node2)
Determines which of the specified versions of an artifact to use when there are conflicting declarations.
|
public ResolutionNode resolveConflict(ResolutionNode node1, ResolutionNode node2)
ConflictResolver
resolveConflict
in interface ConflictResolver
node1
- the first artifact declarationnode2
- the second artifact declarationnode1
; node2
; or null
if
this conflict cannot be resolvedCopyright © 2001–2022 The Apache Software Foundation. All rights reserved.