用Maven执行release的基本步骤

Published on:
Tags: maven

DryRun 一次:

mvn clean release:prepare -DdryRun=true -X

如果没有问题了, 那么:

mvn clean release:clean -X

真正 prepare 一次:

mvn clean release:prepare -X

执行 release:

mvn release:perform -X

执行 release 成功后, 清除 release 产生的多余文件:

mvn clean release:clean -X