In maven it is very easy to set properties in a pom with the following syntax:
...
4.06.17.6
You can use maven build-helper plugin, in particular its regex-property mojo. Take a look at usage examples (scroll to Set a property by applying a regex replacement to a value section).
Basically you want something like that in your pom to get myVersionTag property inferred from myValue:
...
org.codehaus.mojo
build-helper-maven-plugin
1.7
regex-property
regex-property
myVersionTag
$\{myValue}
(\d+)\.(\d+)\.(\d+)\.(\d+)
V_$1_$2_$3_P$4
...