I am trying to call versions:set -DnewVersion=${revision}, but without ${revision} being replaced.
I tried to escape the $ as \$ or $$, but this did not work.
Any idea how to achieve this?
I am trying to call versions:set -DnewVersion=${revision}, but without ${revision} being replaced.
I tried to escape the $ as \$ or $$, but this did not work.
Any idea how to achieve this?
Copyright © 2021 Jogjafile Inc.
There is a trick to make Maven treat properties starting with
$as strings instead of trying to substitute them:The
pom.xmlcontains the desired result:A simpler but less elegant idea is to use
sed: