This is a simple plugin that allows users to increase versions in pom.xml and publish via maven, either with the deploy or the jib:build target.
It has an option to increase the version after release to the next snapshot version
It only assures that the mvn command exists.
Was inspired by https://github.com/conveyal/maven-semantic-release.
npm i -D semantic-release @terrestris/maven-semantic-release- Add
@terrestris/maven-semantic-releaseas a plugin (https://semantic-release.gitbook.io/semantic-release/usage/plugins) - Configure
settingsPathor ensure that a maven settings file exists at the expected location - Make sure that the
@semantic-release/gitplugin runs after this plugin and includes thepom.xmlif you want to use it.
settingsPath: path to a maven settings file (default:'.m2/settings.xml')clean: eithertrueorfalse. Whether thecleantarget will be applied before publishing. (default:true)mavenTarget: possible values:deploy,package jib:build,deploy jib:build. This determines which mvn targets are used to publish. (default:'deploy')updateSnapshotVersion: eithertrueorfalse. Whether a new snapshot version should be set after releasing. (default:false)snapshotCommitMessage: the commit message used if a new snapshot version should be created (default:'chore: setting next snapshot version [skip ci]')processAllModules: eithertrueorfalse. It sets theprocessAllModulesoption for theversions:settarget. This is useful for multimodule projects. (default:false)