]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1864] use SSL by default for central
authorBrett Porter <brett@apache.org>
Thu, 9 Oct 2014 08:04:26 +0000 (19:04 +1100)
committerBrett Porter <brett@apache.org>
Thu, 9 Oct 2014 08:04:26 +0000 (19:04 +1100)
This matches the default configuration used in the latest version of Maven.

archiva-modules/archiva-base/archiva-configuration/src/main/resources/org/apache/archiva/configuration/default-archiva.xml
archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/java/org/apache/archiva/admin/repository/remote/RemoteRepositoryAdminTest.java

index 309dd3c34b135bc83eff57cb7ffb4af2e4fdce94..a74f09ceb7a4b2c6baf2e4784e8b2a165c203c89 100644 (file)
@@ -33,7 +33,7 @@
     <remoteRepository>
       <id>central</id>
       <name>Central Repository</name>
-      <url>http://repo.maven.apache.org/maven2</url>
+      <url>https://repo.maven.apache.org/maven2</url>
       <layout>default</layout>
     </remoteRepository>
   </remoteRepositories>
index 68864460be6fb6d2562104273db027055b8b7993..5d8c7e96c7e0e2893304b06acaded5ea69ccdd15 100644 (file)
@@ -48,7 +48,7 @@ public class RemoteRepositoryAdminTest
     {
         RemoteRepository central = remoteRepositoryAdmin.getRemoteRepository( "central" );
         assertNotNull( central );
-        assertEquals( "http://repo.maven.apache.org/maven2", central.getUrl() );
+        assertEquals( "https://repo.maven.apache.org/maven2", central.getUrl() );
         assertEquals( 60, central.getTimeout() );
         assertNull( central.getUserName() );
         assertNull( central.getPassword() );