diff options
author | Fabrice Bellingard <bellingard@apache.org> | 2007-06-01 10:13:29 +0000 |
---|---|---|
committer | Fabrice Bellingard <bellingard@apache.org> | 2007-06-01 10:13:29 +0000 |
commit | 6cc21f2daf50a5f84859e9b316f648c907046126 (patch) | |
tree | 92c1a29141fdd02e276db9d0bb3af3d039aa5e8b /archiva-base | |
parent | 161bad124387872df95b1337f46f74dabe1280ca (diff) | |
download | archiva-6cc21f2daf50a5f84859e9b316f648c907046126.tar.gz archiva-6cc21f2daf50a5f84859e9b316f648c907046126.zip |
[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
Diffstat (limited to 'archiva-base')
-rw-r--r-- | archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/project/resolvers/RepositoryProjectModelResolverFactory.java | 5 |
1 files 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(); |