semantic-release plugin to publish a maven package.
Step | Description |
---|---|
verifyConditions |
Verify the environment variable and import the gpg secret. |
prepare |
Update the pom.xml version. |
publish |
Publish the maven package to the repository. |
$ npm i semantic-release-maven -D
The plugin can be configured in the semantic-release configuration file:
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"semantic-release-maven"
]
}
Variable | Description |
---|---|
SERVER_USERNAME |
The username of the maven repository manager account. |
SERVER_PASSWORD |
The password of the maven repository manager account. |
GPG_PRIVATE_KEY |
The gpg private key for signing the published artifacts. |
GPG_PASSPHRASE |
The passphrase of the gpg private key. |
Options | Description | Default |
---|---|---|
serverId |
The id of the repository that maven tries to connect to. |
ossrh |
profiles |
List of profiles to activate when publishing the maven package. | none |
MIT © AkiJoey