We manage release numbers at Maven. Then we use the maven release plugin to increase version numbers when we need to free. This tool also ensures that changes are noted in SVN. See: http://maven.apache.org/plugins/maven-release-plugin/index.html
When you release using this tool, the following steps are taken:
- Make sure that there are no uncommitted changes in the sources.
- Make sure there are no SNAPSHOT dependencies
- Change the version in the POM from x-SNAPSHOT to the new version (you will be asked to use versions)
- Convert SCM information to POM to include the final destination of the tag
- Run project tests with modified POMs to confirm that everything is operational
- Commit Modified POM
- Mark the code in SCM with the version name (this will be suggested)
- Configure the version in the POM to the new y-SNAPSHOT value (these values will also be requested)
- Commit Modified POM
These steps are sufficient for most release processes.
source share