Skip to content

Latest commit

 

History

History
44 lines (39 loc) · 1.22 KB

File metadata and controls

44 lines (39 loc) · 1.22 KB

Release

Set mandatory environment variables.

Singing and release and goals require the following environment variables:

  1. PUBLISHING_SERVER_ID = central-sonatype-com — the respected server id entry in the settings.xml that holds the credentials for publishing.

  2. PASSPHRASE_SERVER_ID — the respected server id entry in the settings.xml that holds the GPG passphrase for signing of the artifacts.

The settings.xml looks as follows:

...
<server>
    <id>central-sonatype-com</id>
    <username>change-me</username>
    <password>change-me</password>
</server>
...
<profile>
    <id>central-sonatype-com</id>
    <activation>
        <activeByDefault>false</activeByDefault>
    </activation>
    <properties>
        <gpg.executable>gpg2</gpg.executable>
        <gpg.passphrase>change-me</gpg.passphrase>
    </properties>
</profile>
...

Set up the environment variables by running this snippet with the corresponding values.

$ export PUBLISHING_SERVER_ID=central-sonatype-com
$ export PASSPHRASE_SERVER_ID=central-sonatype-com

Execute release goals

$ ./mvnw --batch-mode -Pcentral-sonatype-com clean release:prepare release:perform
$ git push --tags