Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 982 Bytes

deploy.md

File metadata and controls

26 lines (23 loc) · 982 Bytes

Literature

Prepare

  • 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>

Deploy

  • 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 to true.

    mvn clean deploy
  • If autoReleaseAfterClose is set to false (in configuration of nexus-staging-maven-plugin in pom.xml:

    mvn nexus-staging:release