A Maven extension which manages the current version of the current project. The extension should
be installed in $M2_HOME/lib/ext
. When it is activated it will write a log file target/versioning.log
.
WARNING : This extension has been deprecated and its functionality rolled into https://github.com/release-engineering/pom-manipulation-ext. |
The following configuration is available:
The extension can be used to append a version suffix/qualifier to the current project, and then apply an incremented index to the version to provide a unique release version. For example, if the current project version is 1.0.0.GA, the extension can automatically set the version to 1.0.0.GA-rebuild-1, 1.0.0.GA-rebuild-2, etc.
The extension is configured using the property version.incremental.suffix.
mvn install -Dversion.incremental.suffix=rebuild
The Maven repository metadata will be checked to locate the latest released version of the project artifacts, and the next version is selected by the extension.
The version suffix to be appended to the current project can be manually selected using the property version.suffix
mvn install -Dversion.suffix=release-1
If the current version of the project is "1.2.0.GA", the new version set during the build will be "1.2.0.GA-release-1".
The extension can detect snapshot versions and either preserve the snapshot or replace it with a real version. This is controlled by the property version.suffix.snapshot. The default is false (i.e. remove SNAPSHOT and replace by the suffix).
mvn install -Dversion.suffix.snapshot=true
This means that the SNAPSHOT suffix will be kept.