]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.repo/src/main/java/org/argeo/slc/repo/maven/ImportMavenDependencies.java
Introduce NormalizeGroup
[gpl/argeo-slc.git] / runtime / org.argeo.slc.repo / src / main / java / org / argeo / slc / repo / maven / ImportMavenDependencies.java
index 0bda72b7e87e91d272eaa86e0cf7d5b99f767345..684e75cdaed2761f152987e7f9df11c514cfc791 100644 (file)
@@ -36,6 +36,7 @@ import org.argeo.jcr.JcrUtils;
 import org.argeo.slc.NameVersion;
 import org.argeo.slc.SlcException;
 import org.argeo.slc.aether.AetherTemplate;
+import org.argeo.slc.aether.ArtifactIdComparator;
 import org.argeo.slc.repo.ArtifactIndexer;
 import org.argeo.slc.repo.JarFileIndexer;
 import org.argeo.slc.repo.RepoConstants;
@@ -64,11 +65,7 @@ public class ImportMavenDependencies implements Runnable {
 
        private ArtifactIndexer artifactIndexer = new ArtifactIndexer();
        private JarFileIndexer jarFileIndexer = new JarFileIndexer();
-       private Comparator<Artifact> artifactComparator = new Comparator<Artifact>() {
-               public int compare(Artifact o1, Artifact o2) {
-                       return o1.getArtifactId().compareTo(o2.getArtifactId());
-               }
-       };
+       private Comparator<Artifact> artifactComparator = new ArtifactIdComparator();
 
        public void run() {
                // resolve