Maven release: next development version in batch mode

后端 未结 7 2377
一生所求
一生所求 2021-02-19 23:13

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

7条回答
  •  不思量自难忘°
    2021-02-19 23:47

    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.

提交回复
热议问题