From e3948b0308c817f0b43918731ee26dab6202c0c9 Mon Sep 17 00:00:00 2001 From: "Timoney, Dan (dt5972)" Date: Mon, 4 Mar 2019 11:49:26 -0500 Subject: Change nexus-staging config nexus-staging-maven-plugin interferes with Jenkins staging job, but is needed for release-version and docker-version jobs. Changed to install nexus-staging-maven-plugin in a separate build profile that is activated when altDeploymentRepository property is unset. This property is set by the staging Jenkins job only. Change-Id: I877e176229efd6bd5c08a6b83a2594cc4e57eebe Issue-ID: CCSDK-1119 Signed-off-by: Timoney, Dan (dt5972) --- odlparent/binding-parent/pom.xml | 40 ++++--- odlparent/bundle-parent/pom.xml | 40 ++++--- odlparent/feature-repo-parent/pom.xml | 40 ++++--- odlparent/mdsal-it-parent/pom.xml | 40 ++++--- odlparent/odlparent-lite/pom.xml | 40 ++++--- odlparent/odlparent/pom.xml | 40 ++++--- .../setup/src/main/resources/pom-template.xml | 40 ++++--- odlparent/single-feature-parent/pom.xml | 40 ++++--- pom.xml | 116 ++++++++++++--------- springboot/springboot1/pom.xml | 35 +++++-- springboot/springboot2/pom.xml | 34 ++++-- 11 files changed, 305 insertions(+), 200 deletions(-) diff --git a/odlparent/binding-parent/pom.xml b/odlparent/binding-parent/pom.xml index 010f25fd..4c804b4b 100644 --- a/odlparent/binding-parent/pom.xml +++ b/odlparent/binding-parent/pom.xml @@ -440,7 +440,29 @@ - + + nexus-staging + + + !altDeploymentRepository + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.7 + true + + https://nexus.onap.org + + ecomp-releases + + + + + @@ -747,17 +769,7 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.7 - true - - ${onap.nexus.url} - 176c31dfe190a - ecomp-staging - - + org.apache.maven.plugins maven-deploy-plugin @@ -983,10 +995,6 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - org.apache.maven.plugins maven-deploy-plugin diff --git a/odlparent/bundle-parent/pom.xml b/odlparent/bundle-parent/pom.xml index 411bf560..915a9a5d 100644 --- a/odlparent/bundle-parent/pom.xml +++ b/odlparent/bundle-parent/pom.xml @@ -440,7 +440,29 @@ - + + nexus-staging + + + !altDeploymentRepository + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.7 + true + + https://nexus.onap.org + + ecomp-releases + + + + + @@ -747,17 +769,7 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.7 - true - - ${onap.nexus.url} - 176c31dfe190a - ecomp-staging - - + org.apache.maven.plugins maven-deploy-plugin @@ -983,10 +995,6 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - org.apache.maven.plugins maven-deploy-plugin diff --git a/odlparent/feature-repo-parent/pom.xml b/odlparent/feature-repo-parent/pom.xml index f1ff9176..0e913d19 100644 --- a/odlparent/feature-repo-parent/pom.xml +++ b/odlparent/feature-repo-parent/pom.xml @@ -440,7 +440,29 @@ - + + nexus-staging + + + !altDeploymentRepository + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.7 + true + + https://nexus.onap.org + + ecomp-releases + + + + + @@ -747,17 +769,7 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.7 - true - - ${onap.nexus.url} - 176c31dfe190a - ecomp-staging - - + org.apache.maven.plugins maven-deploy-plugin @@ -983,10 +995,6 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - org.apache.maven.plugins maven-deploy-plugin diff --git a/odlparent/mdsal-it-parent/pom.xml b/odlparent/mdsal-it-parent/pom.xml index 8d52a23f..403058ba 100644 --- a/odlparent/mdsal-it-parent/pom.xml +++ b/odlparent/mdsal-it-parent/pom.xml @@ -440,7 +440,29 @@ - + + nexus-staging + + + !altDeploymentRepository + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.7 + true + + https://nexus.onap.org + + ecomp-releases + + + + + @@ -747,17 +769,7 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.7 - true - - ${onap.nexus.url} - 176c31dfe190a - ecomp-staging - - + org.apache.maven.plugins maven-deploy-plugin @@ -983,10 +995,6 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - org.apache.maven.plugins maven-deploy-plugin diff --git a/odlparent/odlparent-lite/pom.xml b/odlparent/odlparent-lite/pom.xml index 696a409e..45b663a8 100644 --- a/odlparent/odlparent-lite/pom.xml +++ b/odlparent/odlparent-lite/pom.xml @@ -440,7 +440,29 @@ - + + nexus-staging + + + !altDeploymentRepository + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.7 + true + + https://nexus.onap.org + + ecomp-releases + + + + + @@ -747,17 +769,7 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.7 - true - - ${onap.nexus.url} - 176c31dfe190a - ecomp-staging - - + org.apache.maven.plugins maven-deploy-plugin @@ -983,10 +995,6 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - org.apache.maven.plugins maven-deploy-plugin diff --git a/odlparent/odlparent/pom.xml b/odlparent/odlparent/pom.xml index a1159cb7..a86c2fb4 100644 --- a/odlparent/odlparent/pom.xml +++ b/odlparent/odlparent/pom.xml @@ -440,7 +440,29 @@ - + + nexus-staging + + + !altDeploymentRepository + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.7 + true + + https://nexus.onap.org + + ecomp-releases + + + + + @@ -747,17 +769,7 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.7 - true - - ${onap.nexus.url} - 176c31dfe190a - ecomp-staging - - + org.apache.maven.plugins maven-deploy-plugin @@ -983,10 +995,6 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - org.apache.maven.plugins maven-deploy-plugin diff --git a/odlparent/setup/src/main/resources/pom-template.xml b/odlparent/setup/src/main/resources/pom-template.xml index 58291122..d9b3433d 100755 --- a/odlparent/setup/src/main/resources/pom-template.xml +++ b/odlparent/setup/src/main/resources/pom-template.xml @@ -440,7 +440,29 @@ - + + nexus-staging + + + !altDeploymentRepository + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.7 + true + + https://${onap.nexus.host} + ${onap.nexus.staging.profile-id} + ${onap.nexus.staging.server-id} + + + + + @@ -747,17 +769,7 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.7 - true - - \${onap.nexus.url} - 176c31dfe190a - ecomp-staging - - + org.apache.maven.plugins maven-deploy-plugin @@ -983,10 +995,6 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - org.apache.maven.plugins maven-deploy-plugin diff --git a/odlparent/single-feature-parent/pom.xml b/odlparent/single-feature-parent/pom.xml index ae3329b7..1c50cd27 100644 --- a/odlparent/single-feature-parent/pom.xml +++ b/odlparent/single-feature-parent/pom.xml @@ -440,7 +440,29 @@ - + + nexus-staging + + + !altDeploymentRepository + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.7 + true + + https://nexus.onap.org + + ecomp-releases + + + + + @@ -747,17 +769,7 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.7 - true - - ${onap.nexus.url} - 176c31dfe190a - ecomp-staging - - + org.apache.maven.plugins maven-deploy-plugin @@ -983,10 +995,6 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - org.apache.maven.plugins maven-deploy-plugin diff --git a/pom.xml b/pom.xml index 3dffd110..05678e64 100755 --- a/pom.xml +++ b/pom.xml @@ -1,58 +1,74 @@ - + - 4.0.0 - pom - org.onap.ccsdk.parent - parent - 1.2.1-SNAPSHOT - ONAP :: ${project.groupId} :: ${project.artifactId} + 4.0.0 + pom + org.onap.ccsdk.parent + parent + 1.2.1-SNAPSHOT + ONAP :: ${project.groupId} :: ${project.artifactId} - - nexus.onap.org - ecomp-staging - 176c31dfe190a - + + nexus.onap.org + ecomp-staging + 176c31dfe190a + - - - ecomp-releases - https://nexus.onap.org/content/repositories/releases - - - ecomp-snapshots - https://nexus.onap.org/content/repositories/snapshots - - + + + ecomp-releases + https://nexus.onap.org/content/repositories/releases + + + ecomp-snapshots + https://nexus.onap.org/content/repositories/snapshots + + - - - - org.codehaus.mojo - versions-maven-plugin - 2.5 - - true - - - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.7 - true - - https://${onap.nexus.host} - ${onap.nexus.staging.profile-id} - ${onap.nexus.staging.server-id} - - - - - - odlparent - springboot - + + + nexus-staging + + + !altDeploymentRepository + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.7 + true + + https://${onap.nexus.host} + ${onap.nexus.staging.profile-id} + ${onap.nexus.staging.server-id} + + + + + + + + + + + org.codehaus.mojo + versions-maven-plugin + 2.5 + + true + + + + + + odlparent + springboot + diff --git a/springboot/springboot1/pom.xml b/springboot/springboot1/pom.xml index 37d4d0a9..3d5cf6f5 100755 --- a/springboot/springboot1/pom.xml +++ b/springboot/springboot1/pom.xml @@ -332,6 +332,30 @@ + + + nexus-staging + + + !altDeploymentRepository + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.7 + true + + https://${onap.nexus.host} + ${onap.nexus.staging.profile-id} + ${onap.nexus.staging.server-id} + + + + + @@ -951,17 +975,6 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.7 - true - - ${onap.nexus.url} - 176c31dfe190a - ecomp-staging - - org.codehaus.mojo versions-maven-plugin diff --git a/springboot/springboot2/pom.xml b/springboot/springboot2/pom.xml index b3e1c32d..a6d64bec 100755 --- a/springboot/springboot2/pom.xml +++ b/springboot/springboot2/pom.xml @@ -327,6 +327,29 @@ + + nexus-staging + + + !altDeploymentRepository + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.7 + true + + https://${onap.nexus.host} + ${onap.nexus.staging.profile-id} + ${onap.nexus.staging.server-id} + + + + + @@ -946,17 +969,6 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.7 - true - - ${onap.nexus.url} - 176c31dfe190a - ecomp-staging - - org.codehaus.mojo versions-maven-plugin -- cgit 1.2.3-korg