From 6cc21f2daf50a5f84859e9b316f648c907046126 Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Fri, 1 Jun 2007 10:13:29 +0000 Subject: [PATCH] [MRM-394] default remote repositories central, java.net are not available in remote repositories list git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@543454 13f79535-47bb-0310-9956-ffa450edef68 --- .../resolvers/RepositoryProjectModelResolverFactory.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/project/resolvers/RepositoryProjectModelResolverFactory.java b/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/project/resolvers/RepositoryProjectModelResolverFactory.java index 046eaeb6f..de40bd987 100644 --- a/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/project/resolvers/RepositoryProjectModelResolverFactory.java +++ b/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/project/resolvers/RepositoryProjectModelResolverFactory.java @@ -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(); -- 2.39.5