gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1873618 - in /gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy: HostResolver.java Main.java hostresolver.properties
Date Wed, 05 Feb 2020 10:10:27 GMT
Author: markt
Date: Wed Feb  5 10:10:27 2020
New Revision: 1873618

URL: http://svn.apache.org/viewvc?rev=1873618&view=rev
Log:
First pass at trying switch Maven Central to HTTPS. Works when tested locally.

Modified:
    gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/HostResolver.java
    gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/Main.java
    gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/hostresolver.properties

Modified: gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/HostResolver.java
URL: http://svn.apache.org/viewvc/gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/HostResolver.java?rev=1873618&r1=1873617&r2=1873618&view=diff
==============================================================================
--- gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/HostResolver.java (original)
+++ gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/HostResolver.java Wed Feb  5
10:10:27 2020
@@ -42,7 +42,7 @@ public class HostResolver {
      * trailing slash.
      */
     private static final String CENTRAL_MVN_REPO_HOST =
-        "http://repo1.maven.org";
+        "https://repo1.maven.org";
 
     private static final Map<String, String> PREFIX_2_HOST =
         new LinkedHashMap<String, String>();

Modified: gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/Main.java
URL: http://svn.apache.org/viewvc/gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/Main.java?rev=1873618&r1=1873617&r2=1873618&view=diff
==============================================================================
--- gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/Main.java (original)
+++ gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/Main.java Wed Feb  5 10:10:27
2020
@@ -114,6 +114,7 @@ public class Main {
             Component c = getRepositoryComponent();
             c.getServers().add(Protocol.HTTP, "127.0.0.1", port);
             c.getClients().add(Protocol.HTTP);
+            c.getClients().add(Protocol.HTTPS);
             for (Client client : c.getClients()) {
                 client.setConnectTimeout(DEFAULT_CONNECT_TIMEOUT);
             }

Modified: gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/hostresolver.properties
URL: http://svn.apache.org/viewvc/gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/hostresolver.properties?rev=1873618&r1=1873617&r2=1873618&view=diff
==============================================================================
--- gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/hostresolver.properties (original)
+++ gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/hostresolver.properties Wed Feb
 5 10:10:27 2020
@@ -1,2 +1,2 @@
-/maven2=http\://repo1.maven.org
+/maven2=https\://repo1.maven.org
 /repo/m2-snapshot-repository=http\://people.apache.org



Mime
View raw message