/continuous-versioning-maven-plugin

A Maven Plugin computing a unique version based on the source repository

Primary LanguageJava

Project Continuous

The project continuous is intended to provide tools to support continuous delivery with Maven.

continous-versioning-maven-plugin

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.

Usage

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.

Fast-Release

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