Skip to content
Carsten Stocklöw edited this page Jun 16, 2017 · 1 revision

A note on version numbers

Version numbers must have the form: <major>.<minor>.<micro>, where <micro> must be '0' for official releases but must be greater '0' in all other cases. By default, version numbers must always have a suffix "-SNAPSHOT" except for the day of creating an official release. The first time you create a POM file, the artefact version must be set to '0.0.1-SNAPSHOT'. Immediately after an official version 'x.y.0', the version in the trunk must be changed to 'x.y.1-SNAPSHOT'. During the time-frame before the next official release, an artefact's developers can increase <micro> in the POM file of the artefact for creating intermediate version numbers when needed. In particular, it is recommended to do so (increase the <micro> part in your POM file) when you have a change in your exported interfaces that needs an update by the modules that use your module. If you keep the same version number after such changes, all other artefacts that depend on your artefact will have syntax errors immediately after an GIT update or update of local maven repository and then have to change their dependency to an outdated version as long as they do not adopt your changes.