Replace ${revision} in Maven POM by real version when installing / deploying artifacts
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
etc
src
.editorconfig
.gitignore
.travis.yml
CHANGELOG.md
LICENSE
README.md
pom.xml

README.md

unique-revision-maven-filtering

This Maven extension aims to replace ${revision} version in POM when installing / deploying artifacts. You can then depend on such artifacts without breaking dependency resolution.

Installation

Get unique-revision-maven-filtering and copy it in %M2_HOME%/lib/ext folder (where %M2_HOME targets your local Maven installation).

or

Use the new core extensions configuration mechanism by creating a ${maven.multiModuleProjectDirectory}/.mvn/extensions.xml file with:

<?xml version="1.0" encoding="UTF-8"?>
<extensions>
    <extension>
      <groupId>fr.jcgay.maven.extension</groupId>
      <artifactId>unique-revision-maven-filtering</artifactId>
      <version>1.1</version>
    </extension>
</extensions>

Usage

Run you build as usual, if your are using continuous delivery friendly version with the ${revision} property it will be automatically replaced by its resolved value when installing or deploying artifacts.

Build status

Build Status Coverage Status

Release

mvn -B release:prepare release:perform