diff options
author | jhh <jorge.hernandez-herrero@att.com> | 2020-06-26 14:23:35 -0500 |
---|---|---|
committer | jhh <jorge.hernandez-herrero@att.com> | 2020-06-26 14:25:33 -0500 |
commit | 59ba971cd3f68f1608e703b551a4d6faf9a6b02b (patch) | |
tree | 44eebefcc5b70693ee1a71fa509e02cf208899fd /packages/base/src/files/etc/m2 | |
parent | 7707b8db05c1018c6a9e53dc0d9126698b88e62d (diff) |
override central repo with right repository
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
Diffstat (limited to 'packages/base/src/files/etc/m2')
-rw-r--r-- | packages/base/src/files/etc/m2/standalone-settings.xml | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/packages/base/src/files/etc/m2/standalone-settings.xml b/packages/base/src/files/etc/m2/standalone-settings.xml index 8dff1a67..c2f6b63f 100644 --- a/packages/base/src/files/etc/m2/standalone-settings.xml +++ b/packages/base/src/files/etc/m2/standalone-settings.xml @@ -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> @@ -74,10 +74,31 @@ </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> |