THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
For example, on Windows (requires perl):
Note: The snippet below assumes that you are running it as a bat file. If you are just typing these commands at the command prompt, replace "%%i" with "%i". For reference, see the help displayed by "help for" or the following Microsoft's online documentation.
No Format |
---|
cd <component>-m.n.o-RC1 FOR /F "usebackq delims==" %i%%i IN (`dir pom.xml/s/b`) DO ^ perl -pi.bak -e "s!-SNAPSHOT</version!</version!" %i%%i del /S pom.xml.bak/S |
Or using Maven:
mvn versions:set -DnewVersion=3.1 -DgenerateBackupPoms=false
...