You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by db...@apache.org on 2020/01/26 02:10:27 UTC

[tomee] branch master updated: Use https when accessing Maven Central (http access has been disabled globally)

This is an automated email from the ASF dual-hosted git repository.

dblevins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git


The following commit(s) were added to refs/heads/master by this push:
     new ef9428b  Use https when accessing Maven Central (http access has been disabled globally)
ef9428b is described below

commit ef9428b1f770bd37abac82abaf86cbbc5604a765
Author: David Blevins <da...@gmail.com>
AuthorDate: Sat Jan 25 18:07:54 2020 -0800

    Use https when accessing Maven Central
    (http access has been disabled globally)
---
 .../main/java/org/apache/openejb/loader/provisining/MavenResolver.java  | 2 +-
 .../src/test/java/org/apache/openejb/loader/ProvisioningUtilTest.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/container/openejb-loader/src/main/java/org/apache/openejb/loader/provisining/MavenResolver.java b/container/openejb-loader/src/main/java/org/apache/openejb/loader/provisining/MavenResolver.java
index 3f82993..55bddf2 100644
--- a/container/openejb-loader/src/main/java/org/apache/openejb/loader/provisining/MavenResolver.java
+++ b/container/openejb-loader/src/main/java/org/apache/openejb/loader/provisining/MavenResolver.java
@@ -40,7 +40,7 @@ import java.util.Properties;
 import java.util.concurrent.atomic.AtomicReference;
 
 public class MavenResolver implements ArchiveResolver, ProvisioningResolverAware {
-    private static final String REPO1 = "http://repo1.maven.org/maven2/";
+    private static final String REPO1 = "https://repo1.maven.org/maven2/";
     private static final String APACHE_SNAPSHOT = "https://repository.apache.org/snapshots/";
     private static final String SNAPSHOT_SUFFIX = "-SNAPSHOT";
     private static final AtomicReference<DocumentBuilder> BUILDER = new AtomicReference<>(null);
diff --git a/container/openejb-loader/src/test/java/org/apache/openejb/loader/ProvisioningUtilTest.java b/container/openejb-loader/src/test/java/org/apache/openejb/loader/ProvisioningUtilTest.java
index 50bcfbe..9da5f43 100644
--- a/container/openejb-loader/src/test/java/org/apache/openejb/loader/ProvisioningUtilTest.java
+++ b/container/openejb-loader/src/test/java/org/apache/openejb/loader/ProvisioningUtilTest.java
@@ -88,7 +88,7 @@ public class ProvisioningUtilTest {
 
     @Test
     public void http() {
-        final Set<String> urls = ProvisioningUtil.realLocation("http://repo1.maven.org/maven2/org/apache/batchee/batchee-test/0.2-incubating/batchee-test-0.2-incubating.jar");
+        final Set<String> urls = ProvisioningUtil.realLocation("https://repo1.maven.org/maven2/org/apache/batchee/batchee-test/0.2-incubating/batchee-test-0.2-incubating.jar");
         assertEquals(1, urls.size());
         assertTrue(urls.iterator().next().replace("\\", "/").endsWith("target/batchee-test-0.2-incubating.jar"));
     }