I would like to add a TEST
suffix when building with the Maven release plugin. The idea that if the user which builds the artifact ticks a checkbox, then a TEST
version is build.
So the POM contains a version like 1.2.3-SNAPSHOT
and I would like to build 1.2.3-TEST
. The Maven release plugin allows you to set the target version, but I do not know how I should reference the original version (or parts thereof) for the new version, like
${oldVersionWithoutSnapshot}-TEST$
.
Any ideas how to implement this?