use of org.sonatype.aether.collection.UnsolvableVersionConflictException in project sonatype-aether by sonatype.
the class NearestVersionConflictResolver method newFailure.
private UnsolvableVersionConflictException newFailure(final ConflictGroup group, final Map<?, ?> conflictIds, DependencyNode root) {
DependencyFilter filter = new DependencyFilter() {
public boolean accept(DependencyNode node, List<DependencyNode> parents) {
return group.key.equals(conflictIds.get(node));
}
};
PathRecordingDependencyVisitor visitor = new PathRecordingDependencyVisitor(filter);
root.accept(visitor);
return new UnsolvableVersionConflictException(visitor.getPaths(), group.key);
}
Aggregations