Package org.apache.maven.index
Class DefaultScanner.ScannerFileComparator
- java.lang.Object
-
- org.apache.maven.index.DefaultScanner.ScannerFileComparator
-
- 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.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ScannerFileComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(java.io.File o1, java.io.File o2)
-