I have configured a Jenkins job to release my maven project automatically. This is done by using the following: mvn --batch-mode clean release:prepare release:perform
There is a parameter projectVersionPolicyId
provided in the release:prepare
mojo: http://maven.apache.org/maven-release/maven-release-plugin/prepare-mojo.html#projectVersionPolicyId
There might not be built-in version policy to satisfy your needs, but you can develop your own version policy by implementing the interface VersionPolicy. You can see maven-release-yearly-policy as a reference, which provided a version policy using year in the version numbers.