From bee1f38f96469b5cc4eb6d61e895d401bf3f4d8f Mon Sep 17 00:00:00 2001 From: Alexander Kriegisch Date: Tue, 28 Sep 2021 08:20:25 +0200 Subject: [PATCH] Add JDK 16+ workaround for Nexus Staging Maven Plugin Plugin version 1.6.8 does not work on JDK 16+ without special MAVEN_OPTS opening certain modules, because the XStream version used needs it. One workaround is to use a more recent XStream version. TODO: remove plugin dependency after OSSRH-66257, NEXUS-26993 are fixed. Signed-off-by: Alexander Kriegisch --- docs/developer/RELEASE.md | 4 ---- pom.xml | 12 ++++++++++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/docs/developer/RELEASE.md b/docs/developer/RELEASE.md index d505b1735..7c8b04d9f 100644 --- a/docs/developer/RELEASE.md +++ b/docs/developer/RELEASE.md @@ -91,10 +91,6 @@ mvn versions:set -DnewVersion=1.9.7.M2 # Verify if the POM changes are OK, then remove the POM backup files mvn versions:commit -# Set some environment variables needed by Nexus Staging Maven plugin on JDK 16, -# until https://issues.sonatype.org/browse/OSSRH-66257 is resolved -export MAVEN_OPTS="--add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.desktop/java.awt.font=ALL-UNNAMED" - # Build and deploy the release to a Nexus staging repository. # The 'release' profile will activate: # - Maven GPG plugin for signing artifacts (stand by to enter your passpharase). diff --git a/pom.xml b/pom.xml index 2e7060f68..5dd236142 100644 --- a/pom.xml +++ b/pom.xml @@ -372,6 +372,18 @@ false + + + + com.thoughtworks.xstream + xstream + 1.4.15 + + org.codehaus.mojo -- 2.39.5