summaryrefslogtreecommitdiffstats
path: root/packages/base/src/files/etc/m2
diff options
context:
space:
mode:
authorRashmi Pujar <rashmi.pujar@bell.ca>2020-01-24 15:34:04 -0500
committerRashmi Pujar <rashmi.pujar@bell.ca>2020-01-29 16:08:36 -0500
commitbb03caf94de4ad884e308dbce4992e370638d629 (patch)
treed5083374fff40b9cd96870b9a5d44919071ba3e3 /packages/base/src/files/etc/m2
parenta54a2373f1b48cdb64d4920ec57ffeab4f228814 (diff)
Parameterize mvn repo urls and proxy settings
This allows the users to build the docker images for drools-pdp and drools-application using their own CI pipelines if needed. Issue-ID: POLICY-2330 Signed-off-by: Rashmi Pujar <rashmi.pujar@bell.ca> Change-Id: I9ea0161b45d504be4e65a21c95e48dee4a78de3a
Diffstat (limited to 'packages/base/src/files/etc/m2')
-rw-r--r--packages/base/src/files/etc/m2/settings.xml46
-rw-r--r--packages/base/src/files/etc/m2/standalone-settings.xml36
2 files changed, 23 insertions, 59 deletions
diff --git a/packages/base/src/files/etc/m2/settings.xml b/packages/base/src/files/etc/m2/settings.xml
index 21212e0b..ed71e029 100644
--- a/packages/base/src/files/etc/m2/settings.xml
+++ b/packages/base/src/files/etc/m2/settings.xml
@@ -4,11 +4,12 @@
Base Package
================================================================================
Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
+ Modifications Copyright (C) 2020 Bell Canada.
================================================================================
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@@ -19,18 +20,13 @@
============LICENSE_END=========================================================
-->
-
<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">
-
<offline>false</offline>
-
<profiles>
-
<profile>
<id>policy-local</id>
-
<repositories>
<repository>
<id>file-repository</id>
@@ -45,12 +41,9 @@
</snapshots>
</repository>
</repositories>
-
</profile>
-
<profile>
<id>policy-releases</id>
-
<repositories>
<repository>
<id>${env.RELEASE_REPOSITORY_ID}</id>
@@ -64,12 +57,9 @@
</snapshots>
</repository>
</repositories>
-
</profile>
-
<profile>
<id>policy-snapshots</id>
-
<repositories>
<repository>
<id>${env.SNAPSHOT_REPOSITORY_ID}</id>
@@ -83,17 +73,14 @@
</snapshots>
</repository>
</repositories>
-
</profile>
-
<profile>
- <id>onap-releases</id>
-
+ <id>releases</id>
<repositories>
<repository>
- <id>onap-releases</id>
- <name>onap-releases</name>
- <url>https://nexus.onap.org/content/repositories/releases/</url>
+ <id>releases</id>
+ <name>releases</name>
+ <url>${env.MVN_RELEASE_REPO_URL}</url>
<releases>
<enabled>true</enabled>
</releases>
@@ -102,18 +89,14 @@
</snapshots>
</repository>
</repositories>
-
</profile>
-
<profile>
-
- <id>onap-snapshots</id>
-
+ <id>snapshots</id>
<repositories>
<repository>
- <id>onap-snapshots</id>
- <name>onap-snapshots</name>
- <url>https://nexus.onap.org/content/repositories/snapshots/</url>
+ <id>snapshots</id>
+ <name>snapshots</name>
+ <url>${env.MVN_SNAPSHOT_REPO_URL}</url>
<releases>
<enabled>false</enabled>
</releases>
@@ -122,19 +105,15 @@
</snapshots>
</repository>
</repositories>
-
</profile>
-
</profiles>
-
<activeProfiles>
<activeProfile>policy-local</activeProfile>
<activeProfile>policy-releases</activeProfile>
<activeProfile>policy-snapshots</activeProfile>
- <activeProfile>onap-releases</activeProfile>
- <activeProfile>onap-snapshots</activeProfile>
+ <activeProfile>releases</activeProfile>
+ <activeProfile>snapshots</activeProfile>
</activeProfiles>
-
<servers>
<server>
<id>${env.SNAPSHOT_REPOSITORY_ID}</id>
@@ -147,5 +126,4 @@
<password>${env.REPOSITORY_PASSWORD}</password>
</server>
</servers>
-
</settings>
diff --git a/packages/base/src/files/etc/m2/standalone-settings.xml b/packages/base/src/files/etc/m2/standalone-settings.xml
index e19180e1..8dff1a67 100644
--- a/packages/base/src/files/etc/m2/standalone-settings.xml
+++ b/packages/base/src/files/etc/m2/standalone-settings.xml
@@ -4,6 +4,7 @@
Base Package
================================================================================
Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
+ Modifications Copyright (C) 2020 Bell Canada.
================================================================================
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -19,18 +20,13 @@
============LICENSE_END=========================================================
-->
-
<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">
-
<offline>false</offline>
-
<profiles>
-
<profile>
<id>policy-local</id>
-
<repositories>
<repository>
<id>file-repository</id>
@@ -45,17 +41,14 @@
</snapshots>
</repository>
</repositories>
-
</profile>
-
<profile>
- <id>onap-releases</id>
-
+ <id>releases</id>
<repositories>
<repository>
- <id>onap-releases</id>
- <name>onap-releases</name>
- <url>https://nexus.onap.org/content/repositories/releases/</url>
+ <id>releases</id>
+ <name>releases</name>
+ <url>${env.MVN_RELEASE_REPO_URL}</url>
<releases>
<enabled>true</enabled>
</releases>
@@ -64,17 +57,14 @@
</snapshots>
</repository>
</repositories>
-
</profile>
-
<profile>
- <id>onap-snapshots</id>
-
+ <id>snapshots</id>
<repositories>
<repository>
- <id>onap-snapshots</id>
- <name>onap-snapshots</name>
- <url>https://nexus.onap.org/content/repositories/snapshots/</url>
+ <id>snapshots</id>
+ <name>snapshots</name>
+ <url>${env.MVN_SNAPSHOT_REPO_URL}</url>
<releases>
<enabled>false</enabled>
</releases>
@@ -83,15 +73,11 @@
</snapshots>
</repository>
</repositories>
-
</profile>
-
</profiles>
-
<activeProfiles>
<activeProfile>policy-local</activeProfile>
- <activeProfile>onap-releases</activeProfile>
- <activeProfile>onap-snapshots</activeProfile>
+ <activeProfile>releases</activeProfile>
+ <activeProfile>snapshots</activeProfile>
</activeProfiles>
-
</settings>