From 87895565e98350f1ea0cca872432a253b7c4ad79 Mon Sep 17 00:00:00 2001 From: Gary Wu Date: Tue, 11 Sep 2018 14:28:49 -0700 Subject: Support building against local nexus repos Refactor oparent pom to support running builds against local nexus repos without having to modify oparent source code. Change-Id: Ic4bd87a6c140ea0d5600fa0cf9aaa37543afcd77 Issue-ID: INT-652 Signed-off-by: Gary Wu --- .gitignore | 2 +- pom.xml | 36 ++++++++++++++++++++++++++++-------- settings.xml | 57 ++++++++++++++++++++++++++------------------------------- 3 files changed, 55 insertions(+), 40 deletions(-) diff --git a/.gitignore b/.gitignore index 2ef78d4..32edeae 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,4 @@ target .project .settings .classpath - +cia/ diff --git a/pom.xml b/pom.xml index f1ce155..09d5edc 100644 --- a/pom.xml +++ b/pom.xml @@ -1,6 +1,6 @@ /content/sites/site/${project.groupId}/${project.artifactId}/${project.version} - + + nexus3.onap.org:10003 nexus3.onap.org:10002 + nexus3.onap.org:10001 + nexus3.onap.org:10003 + --> @@ -97,8 +101,23 @@ org.apache.maven.plugins maven-enforcer-plugin - 3.0.0-M1 + 3.0.0-M2 + + enforce-property + + enforce + + + + + onap.nexus.url + You must set a onap.nexus.url property in your ~/.m2/settings.xml. See oparent/settings.xml for an example. + + + true + + enforce-no-snapshots @@ -142,5 +161,6 @@ maven-enforcer-plugin + diff --git a/settings.xml b/settings.xml index 71dfb7f..edfbba7 100644 --- a/settings.xml +++ b/settings.xml @@ -1,6 +1,6 @@ + nexus3.onap.org:10003 + nexus3.onap.org:10002 + nexus3.onap.org:10001 + nexus3.onap.org:10003 + + onap-snapshots @@ -48,35 +63,6 @@ - - onap-staging - - - onap-staging - onap-staging - https://nexus.onap.org/content/repositories/staging/ - - true - - - false - - - - - - onap-staging - onap-staging - https://nexus.onap.org/content/repositories/staging/ - - true - - - false - - - - onap-releases @@ -109,6 +95,10 @@ onap-public + + central + http://repo1.maven.org/maven2/ + onap-public onap-public @@ -122,6 +112,10 @@ + + central + http://repo1.maven.org/maven2/ + onap-public onap-public @@ -136,6 +130,7 @@ + local-public @@ -167,8 +162,8 @@ + onap-settings onap-snapshots - onap-releases onap-public -- cgit 1.2.3-korg