The project continuous is intended to provide tools to support continuous delivery with Maven.
The continous-versioning-maven-plugin is a Maven plugin generating a unique version number based on the SCM metadata. It supports Git and Subversion. The generated unique version number is computed in order to respect version ordering, and it intended to be used to create fast releases in continuous delivery pipeline.
On a project using the 1.0.0-SNAPSHOT version, the computed version will be 1.0.0_xxx, where xxx is the computed version.
In your pom add:
<build>
<plugins>
<plugin>
<groupId>de.akquinet.innovation.continuous</groupId>
<artifactId>continuous-versioning-maven-plugin</artifactId>
<version>VERSION</version>
</plugin>
</plugins>
</build>
You must also have the SCM metadata configured in your pom.
The plugin also initiates the computation of the release.properties file used by the Maven Release Plugin. To build a fast release using the computed version, just use:
mvn continuous:compute-unique-version release:prepare release:perform