- Only necessary if public/private key pair isn't generated yet.
- On Windows key data is stored in
%APPDATA%\gnupg
.gpg --full-generate-key gpg --keyserver https://keys.openpgp.org --send-keys <key> gpg --keyserver http://keyserver.ubuntu.com:11371 --send-keys <key>
-
Java 17/21:
$Env: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"
-
Deploy to stating environment. Also automatically releases the package, if
autoReleaseAfterClose
is set totrue
.mvn clean deploy
-
If
autoReleaseAfterClose
is set tofalse
(in configuration ofnexus-staging-maven-plugin
inpom.xml
:mvn nexus-staging:release