override central repo with right repository 13/109613/1
authorjhh <jorge.hernandez-herrero@att.com>
Fri, 26 Jun 2020 19:23:35 +0000 (14:23 -0500)
committerjhh <jorge.hernandez-herrero@att.com>
Fri, 26 Jun 2020 19:25:33 +0000 (14:25 -0500)
This is to prevent that other poms setting the repository
http://repo2.maven.org, which has been decommissioned.
The repo1.maven.org is the one to be used, only with https.

Issue-ID: POLICY-2677
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I743014ea553f5df829eb0bd7ada2cb3d1fb842bf

packages/base/src/files/etc/m2/standalone-settings.xml

index 8dff1a6..c2f6b63 100644 (file)
@@ -3,7 +3,7 @@
   ============LICENSE_START=======================================================
   Base Package
   ================================================================================
-  Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
+  Copyright (C) 2017-2020 AT&T Intellectual Property. All rights reserved.
   Modifications Copyright (C) 2020 Bell Canada.
   ================================================================================
   Licensed under the Apache License, Version 2.0 (the "License");
@@ -21,8 +21,8 @@
 -->
 
 <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
-    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
+          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
     <offline>false</offline>
     <profiles>
         <profile>
                 </repository>
             </repositories>
         </profile>
+        <profile>
+            <id>onap-public</id>
+            <repositories>
+                <repository>
+                    <id>central</id>
+                    <url>https://repo1.maven.org/maven2/</url>
+                </repository>
+                <repository>
+                    <id>onap-public</id>
+                    <name>onap-public</name>
+                    <url>https://nexus.onap.org/content/repositories/public/</url>
+                    <releases>
+                        <enabled>true</enabled>
+                    </releases>
+                    <snapshots>
+                        <enabled>false</enabled>
+                    </snapshots>
+                </repository>
+            </repositories>
+        </profile>
     </profiles>
     <activeProfiles>
         <activeProfile>policy-local</activeProfile>
         <activeProfile>releases</activeProfile>
         <activeProfile>snapshots</activeProfile>
+        <activeProfile>onap-public</activeProfile>
     </activeProfiles>
 </settings>