Use https for Maven central 41/86941/2
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 15 Jan 2020 17:47:15 +0000 (18:47 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 15 Jan 2020 18:18:24 +0000 (19:18 +0100)
As explained in
https://support.sonatype.com/hc/en-us/articles/360041287334-Central-501-HTTPS-Required
Maven Central now requires HTTPS. Make sure we fix that.

While we are at it, remove the other repositories, as they are
just not there in upstream anymore.

Change-Id: Id9b578a1332cdbd52a279c9811b0b32fe183944a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
features-test/src/main/java/org/opendaylight/odlparent/featuretest/SingleFeatureTest.java

index 15260c642498600a728d44445368cceed847c59c..977c1daf8edbf9839fe1200df71a23fb42d68ed2 100644 (file)
@@ -101,17 +101,14 @@ public class SingleFeatureTest {
     private static final String PROPERTIES_FILENAME = "singlefeaturetest.properties";
 
     /**
-     * <p>List of Karaf 3.0.4 default maven repositories with snapshot repositories excluded.</p>
+     * <p>List of Karaf 4.2.6 default maven repositories with snapshot repositories excluded.</p>
      * <p>Unfortunately this must be hard-coded since declarative model which uses Options,
-     * does not allow us to read value, parse it (properties has allways
+     * does not allow us to read value, parse it (properties has always
      * problems with lists) and construct replacement string which does
      * not contains snapshots.</p>
      * <p>When updating Karaf, check this against org.ops4j.pax.url.mvn.cfg in the Karaf distribution.</p>
      */
-    private static final String EXTERNAL_DEFAULT_REPOSITORIES = "http://repo1.maven.org/maven2@id=central, "
-            + "http://repository.springsource.com/maven/bundles/release@id=spring.ebr.release, "
-            + "http://repository.springsource.com/maven/bundles/external@id=spring.ebr.external, "
-            + "http://zodiac.springsource.com/maven/bundles/release@id=gemini ";
+    private static final String EXTERNAL_DEFAULT_REPOSITORIES = "https://repo1.maven.org/maven2@id=central ";
 
     @Inject @NonNull
     private BundleContext bundleContext;