![](/img/trans.png)
[英]Maven: Build without the release:plugin and without a SNAPSHOT-version-number
[英]Maven-release plugin: Branch without snapshot in version
我想自动化我们的分支过程,因为我正在使用maven-release-plugin。 以下命令用于分支:
mvn --batch-mode release:branch -DupdateBranchVersions=true
-DupdateWorkingCopyVersions=$MoveWorkingCopyToNextVersion
-DautoVersionSubmodules=true -Darguments="-DskipTests"
-DreleaseVersion=$BranchVersion -DbranchName=$BranchVersion
-DscmCommentPrefix=$ReleaseJira:
-Dusername=$BuildUser -Dpassword=$BuildUserPassword
我的问题是,上面命令版本的分支中创建的pom是“BranchVersion-SNAPSHOT”,而我想在分支中的pom版本应该是“BranchVersion”,即它不应该包含快照。
我知道这不是标准方法,但如果分支包含“SNAPSHOT”,则我们当前的发布过程将不起作用。
有什么建议么?
如果你没有得到updateVersionsToSnapshot工作,你可以使用版本插件后来在Pom上设置版本
http://mojo.codehaus.org/versions-maven-plugin/set-mojo.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.