get version from pom.xml bash code example
Example: pom extract version linux
mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec
mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec