jcgay / unique-revision-maven-filtering

Replace ${revision} in Maven POM by real version when installing / deploying artifacts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.3</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

About

Replace ${revision} in Maven POM by real version when installing / deploying artifacts

License:MIT License


Languages

Language:Groovy 61.5%Language:Java 38.5%