From fcb563dee0a426645cc9c1935869ac8e79f2426c Mon Sep 17 00:00:00 2001 From: Alexander Kriegisch Date: Sat, 15 May 2021 17:34:15 +0700 Subject: Fix selective Nexus deployment to Sonatype OSSRH Other than Maven Deploy, Nexus Staging plugin cannot just be added to the 'build/plugins' section of the parent POM once and (de-)activated with a simple property like 'maven.deploy.skip' on a per-module basis. See also https://issues.sonatype.org/browse/OSSRH-68966. Consequently, we do not add it to the parent but separately to each module meant to be published. Signed-off-by: Alexander Kriegisch --- asm-renamed/pom.xml | 6 ++++++ aspectjmatcher/pom.xml | 6 ++++++ aspectjrt/pom.xml | 6 ++++++ aspectjtools/pom.xml | 7 +++++++ aspectjweaver/pom.xml | 6 ++++++ pom.xml | 16 ++++++++-------- 6 files changed, 39 insertions(+), 8 deletions(-) diff --git a/asm-renamed/pom.xml b/asm-renamed/pom.xml index e62b98565..6a7b479b4 100644 --- a/asm-renamed/pom.xml +++ b/asm-renamed/pom.xml @@ -254,6 +254,12 @@ + + + org.sonatype.plugins + nexus-staging-maven-plugin + + diff --git a/aspectjmatcher/pom.xml b/aspectjmatcher/pom.xml index ff456caa1..6dd942809 100644 --- a/aspectjmatcher/pom.xml +++ b/aspectjmatcher/pom.xml @@ -235,6 +235,12 @@ + + + org.sonatype.plugins + nexus-staging-maven-plugin + + diff --git a/aspectjrt/pom.xml b/aspectjrt/pom.xml index c674b3601..bc5e36e59 100644 --- a/aspectjrt/pom.xml +++ b/aspectjrt/pom.xml @@ -228,6 +228,12 @@ + + + org.sonatype.plugins + nexus-staging-maven-plugin + + diff --git a/aspectjtools/pom.xml b/aspectjtools/pom.xml index 03bb6ed96..78b8539f5 100644 --- a/aspectjtools/pom.xml +++ b/aspectjtools/pom.xml @@ -258,6 +258,13 @@ + + + + org.sonatype.plugins + nexus-staging-maven-plugin + + diff --git a/aspectjweaver/pom.xml b/aspectjweaver/pom.xml index 4db51b332..5e4ec2e40 100644 --- a/aspectjweaver/pom.xml +++ b/aspectjweaver/pom.xml @@ -260,6 +260,12 @@ + + + org.sonatype.plugins + nexus-staging-maven-plugin + + diff --git a/pom.xml b/pom.xml index 8e1405f64..9ea49b191 100644 --- a/pom.xml +++ b/pom.xml @@ -19,7 +19,7 @@ true - + true @@ -189,7 +189,7 @@ release - + false @@ -198,10 +198,6 @@ org.apache.maven.plugins maven-gpg-plugin - - org.sonatype.plugins - nexus-staging-maven-plugin - @@ -351,6 +347,12 @@ + org.sonatype.plugins nexus-staging-maven-plugin 1.6.8 @@ -359,8 +361,6 @@ ossrh https://oss.sonatype.org/ false - - ${maven.deploy.skip} -- cgit v1.2.3