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.
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>
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.
mvn -B release:prepare release:perform