What is the best way to change version of Maven project, to release this version and then return back to *-SNAPSHOT development.
Currently I'm doing following:
- retrieve current version (most likely with
SNAPSHOT) frompom.xml - increment version (
mvn -DnewVersion=<something> versions:set), respecting rules described in the question Maven artifact version for patches mvn:installto sent to repo- renaming version once again adding
SNAPSHOTpostfix. - committing changes (using some version control system)
I have a strong feeling I'm doing something wrong and/or inefficient.