for f in `find . -name pom.xml`; do sed 's/_OLD_/_NEW_/' $f > $f.new; mv $f.new $f; donefor example:
for f in `find . -name pom.xml`; do sed 's/1.1.23-SNAPSHOT/1.1.24-SNAPSHOT/' $f > $f.new; mv $f.new $f; done
*DON'T FORGET TO CHECK THE DIFF (you ARE using Git, right?)*
** Update (thanks jamcole)**
Or even easier, use the Maven versions plugin (from the top-level project):mvn versions:set
No comments:
Post a Comment