gpt4 book ai didi

Maven 发布插件 : Branch without snapshot in version

转载 作者:行者123 更新时间:2023-12-02 03:35:27 25 4
gpt4 key购买 nike

我想自动化我们的分支过程,为此我正在使用 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

关于Maven 发布插件 : Branch without snapshot in version,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23730597/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com