From a177df29f93e6bbda7f0b1a53cc6028dedfc629a Mon Sep 17 00:00:00 2001 From: Carsten Lund Date: Thu, 23 Feb 2017 16:21:45 +0000 Subject: Initial POM to handle staging Change-Id: I73065168ff3853fa1ffe168fdf9494b4c67f2c3d Signed-off-by: Carsten Lund --- ncomp-maven-base/pom.xml | 14 ++++++++++++++ ncomp-maven-xcore/pom.xml | 14 ++++++++++++++ pom.xml | 14 ++++++++++++++ version.properties | 11 +++++++++++ 4 files changed, 53 insertions(+) create mode 100644 version.properties diff --git a/ncomp-maven-base/pom.xml b/ncomp-maven-base/pom.xml index 725eb6a..2924faa 100644 --- a/ncomp-maven-base/pom.xml +++ b/ncomp-maven-base/pom.xml @@ -12,6 +12,9 @@ 1.7 https://nexus.openecomp.org/content/repositories/releases/ https://nexus.openecomp.org/content/repositories/snapshots/ + https://nexus.openecomp.org + https://nexus.openecomp.org/content/repositories/snapshots/ + https://nexus.openecomp.org/content/repositories/snapshots/ @@ -31,6 +34,17 @@ + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.7 + true + + ${openecomp.nexus.staging.profileId} + ${openecomp.nexus.proxy} + ${openecomp.nexus.staging.profileId} + + com.blackducksoftware.integration diff --git a/ncomp-maven-xcore/pom.xml b/ncomp-maven-xcore/pom.xml index 5a2efd5..4835045 100644 --- a/ncomp-maven-xcore/pom.xml +++ b/ncomp-maven-xcore/pom.xml @@ -12,6 +12,9 @@ 1.7 https://nexus.openecomp.org/content/repositories/releases/ https://nexus.openecomp.org/content/repositories/snapshots/ + https://nexus.openecomp.org + https://nexus.openecomp.org/content/repositories/snapshots/ + https://nexus.openecomp.org/content/repositories/snapshots/ @@ -37,6 +40,17 @@ + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.7 + true + + ${openecomp.nexus.staging.profileId} + ${openecomp.nexus.proxy} + ${openecomp.nexus.staging.profileId} + + com.blackducksoftware.integration diff --git a/pom.xml b/pom.xml index 1be7884..a34141a 100644 --- a/pom.xml +++ b/pom.xml @@ -12,6 +12,9 @@ 1.7 https://nexus.openecomp.org/content/repositories/releases/ https://nexus.openecomp.org/content/repositories/snapshots/ + https://nexus.openecomp.org + https://nexus.openecomp.org/content/repositories/snapshots/ + https://nexus.openecomp.org/content/repositories/snapshots/ @@ -32,6 +35,17 @@ + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.7 + true + + ${openecomp.nexus.staging.profileId} + ${openecomp.nexus.proxy} + ${openecomp.nexus.staging.profileId} + + diff --git a/version.properties b/version.properties new file mode 100644 index 0000000..35d03a3 --- /dev/null +++ b/version.properties @@ -0,0 +1,11 @@ +# Versioning variables +# Note that these variables cannot be structured (e.g. : version.release or version.snapshot etc... ) +# because they are used in Jenkins, whose plug-in doesn't support +major=1 +minor=0 +patch=0 +base_version=${major}.${minor}.${patch} +# Release must be completed with git revision # in Jenkins + +release_version=${base_version} +snapshot_version=${base_version}-SNAPSHOT -- cgit 1.2.3-korg