Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

workaround for OSSRH-66257 #31

Open
maricn opened this issue Dec 31, 2021 · 0 comments
Open

workaround for OSSRH-66257 #31

maricn opened this issue Dec 31, 2021 · 0 comments

Comments

@maricn
Copy link
Owner

maricn commented Dec 31, 2021

if using JDK 16 or JDK 17, the release will fail with the current nexus-staging-maven-plugin.. known bug: https://issues.sonatype.org/browse/OSSRH-66257

workaround (from https://stackoverflow.com/questions/70153962/nexus-staging-maven-plugin-maven-deploy-failed-an-api-incompatibility-was-enco):

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"

the other workaround to force the plugin to use the xtream dependency causes problems because there are vulnerabilities in the old versions, and the newer versions fail on another error..

Acceptance criteria

  • no local workaround needs to be applied in order to release (export MAVEN_OPTS)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant