]> source.dussan.org Git - archiva.git/commitdiff
[MRM-394] default remote repositories central, java.net are not available in remote... tags/archiva-1.0-alpha-1@543504
authorFabrice Bellingard <bellingard@apache.org>
Fri, 1 Jun 2007 10:13:29 +0000 (10:13 +0000)
committerFabrice Bellingard <bellingard@apache.org>
Fri, 1 Jun 2007 10:13:29 +0000 (10:13 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@543454 13f79535-47bb-0310-9956-ffa450edef68

archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/project/resolvers/RepositoryProjectModelResolverFactory.java

index 046eaeb6f36db566b964d60314c95e6289fb5dc1..de40bd9873702e2b9aac9a584bbda1a2d648bd1f 100644 (file)
@@ -40,6 +40,7 @@ import org.codehaus.plexus.registry.Registry;
 import org.codehaus.plexus.registry.RegistryListener;
 
 import java.util.ArrayList;
+import java.util.Collection;
 import java.util.HashMap;
 import java.util.Iterator;
 import java.util.List;
@@ -175,9 +176,9 @@ public class RepositoryProjectModelResolverFactory
             resolverMap.clear();
 
             List configRepos = archivaConfiguration.getConfiguration().getRepositories();
-            CollectionUtils.filter( configRepos, LocalRepositoryPredicate.getInstance() );
+            Collection configLocalRepos = CollectionUtils.select( configRepos, LocalRepositoryPredicate.getInstance() );
 
-            Iterator it = configRepos.iterator();
+            Iterator it = configLocalRepos.iterator();
             while ( it.hasNext() )
             {
                 RepositoryConfiguration repoconfig = (RepositoryConfiguration) it.next();