Skip to content

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

License

Notifications You must be signed in to change notification settings

jcgay/unique-revision-maven-filtering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Packages

No packages published