- All Implemented Interfaces:
- java.util.Comparator<java.io.File>
- Enclosing class:
- DefaultScanner
private static class DefaultScanner.ScannerFileComparator
extends java.lang.Object
implements java.util.Comparator<java.io.File>
A special comparator to overcome some very bad limitations of nexus-indexer during scanning: using this
comparator, we force to "discover" POMs last, before the actual artifact file. The reason for this, is to
guarantee that scanner will provide only "best" informations 1st about same artifact, since the POM->artifact
direction of discovery is not trivial at all (pom read -> packaging -> extension -> artifact file). The artifact
-> POM direction is trivial.