I have a project that consists of multiple Maven sub projects. And the structure looks like this
my-project
|
|__sub-project-1
|__sub-project-2
|__sub-project-3
|__sub-project-4
|__sub-project-5
|__sub-project-6
|__sub-project-7
|__scripts
|__pom.xml
Inside the folder scripts I have shell scripts that start my sub projects, i.e.
java \
-jar -Djava.net.preferIPv4Stack=true \
-Ddata.folder="test-data" \
<...>
"sub-project-1.[1.0.1].jar" \
<...>
I want to make so, that version (inside square brackets) in shell scripts would update after changing the version inside a sub-project[n] pom.xml.
What is a standard way to achieve?