Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
etc
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Topics

Resources

License

Packages

No packages published