Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 1.15 KB

DEPLOYMENT.md

File metadata and controls

51 lines (38 loc) · 1.15 KB

How to deploy a new version

NOTE: Preferably make changes on a branch and deploy from there.

  1. Adjust settings.xml
<settings
  xmlns="http://maven.apache.org/SETTINGS/1.1.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd">
  <servers>
    <server>
      <id>ossrh</id>
      <username>${env.OSSRH_USERNAME}</username>
      <password>${env.OSSRH_PASSWORD}</password>
    </server>
  </servers>
</settings>
  1. Ensure GPG Key is uploaded to a Keyserver
gpg --gen-key
gpg --send-keys
  1. Deploy the archetypes with
export GPG_TTY=$(tty)
  • Java Enterprise archetypes: ./mvnw -B release:prepare release:perform
  • Java Testing archetype: cd testing-toolkit-archetype && ../mvnw -B release:prepare release:perform

Troubleshooting

Recover from a failed deployment to Nexus:

  • remove a tag from a failed release:
git tag -d <tag_name>
git push --delete origin <tag_name>
  • remove any .releaseBackup/release.properties files
  • undo version change in pom.xml
  • undo [maven-release-plugin] commits