semantic-release-maven
v1.1.8
Published
semantic-release plugin to publish a maven package.
Readme
semantic-release-maven
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. |
Install
$ npm i semantic-release-maven -D
Usage
The plugin can be configured in the semantic-release configuration file:
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"semantic-release-maven"
]
}Configuration
Environment variables
| 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
| 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 |
License
MIT © AkiJoey
