Repository: ant-ivy Updated Branches: refs/heads/master 8cba88fa1 -> 09b1a632c
Seems there is one last Maven 1 repo available Project: http://git-wip-us.apache.org/repos/asf/ant-ivy/repo Commit: http://git-wip-us.apache.org/repos/asf/ant-ivy/commit/09b1a632 Tree: http://git-wip-us.apache.org/repos/asf/ant-ivy/tree/09b1a632 Diff: http://git-wip-us.apache.org/repos/asf/ant-ivy/diff/09b1a632 Branch: refs/heads/master Commit: 09b1a632c17b34650d2bcf748be14690c9882e52 Parents: 8cba88f Author: Nicolas Lalevée <[email protected]> Authored: Mon Sep 7 01:28:55 2015 +0200 Committer: Nicolas Lalevée <[email protected]> Committed: Mon Sep 7 01:28:55 2015 +0200 ---------------------------------------------------------------------- test/java/org/apache/ivy/plugins/resolver/IBiblioHelper.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/09b1a632/test/java/org/apache/ivy/plugins/resolver/IBiblioHelper.java ---------------------------------------------------------------------- diff --git a/test/java/org/apache/ivy/plugins/resolver/IBiblioHelper.java b/test/java/org/apache/ivy/plugins/resolver/IBiblioHelper.java index 131de90..3b06d8e 100644 --- a/test/java/org/apache/ivy/plugins/resolver/IBiblioHelper.java +++ b/test/java/org/apache/ivy/plugins/resolver/IBiblioHelper.java @@ -34,15 +34,13 @@ public class IBiblioHelper { public static String getIBiblioMirror() throws Exception { if (!_checked) { - String[] mirrors = new String[] {"https://repo1.maven.org/maven/REPOSITORY-V1.txt", - "http://www.ibiblio.org/maven"}; - String[] mirrorsRoot = new String[] {"https://repo1.maven.org/maven", - "http://www.ibiblio.org/maven"}; + String[] mirrors = new String[] {"http://mirrors.ibiblio.org/maven"}; + String[] mirrorsRoot = new String[] {"http://mirrors.ibiblio.org/maven"}; long best = -1; for (int i = 0; i < mirrors.length; i++) { long start = System.currentTimeMillis(); - if (handler.isReachable(new URL(mirrors[i]), 300)) { + if (handler.isReachable(new URL(mirrors[i]), 500)) { long took = System.currentTimeMillis() - start; System.out.println("reached " + mirrors[i] + " in " + took + "ms"); if (best == -1 || took < best) {
