Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Extension (lib/ext style) used for automatically managing a standardized, incremental version qualifier during a build.

Notifications You must be signed in to change notification settings

release-engineering/maven-versioning-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Maven Versioning Extension

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:

Automatic version increment

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.

Manual version suffix

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".

Snapshot Detection

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.

About

Extension (lib/ext style) used for automatically managing a standardized, incremental version qualifier during a build.

Resources

Stars

Watchers

Forks

Packages

No packages published