Sorry, but I think your best option is the Ant plugin.
I shudder every time I have to use Ant in my pom.xml, but in some cases this is the easiest option. Learn to hug him, this will save you some headaches :-)
You may also be able to write your own Maven plugin, but most likely it will be more.
Another option is to create a shell script to add the value, and then call it using the maven-exec-plugin . However, in this case you will have to deal with various operating systems.
source share