Maven:从现有标签部署?

发布于 2024-11-03 12:24:56 字数 2492 浏览 2 评论 0原文

我正在尝试部署工件的 32 位和 64 位版本。我调用了release:preparerelease:perform来部署32位版本,但是当我重复相同的命令来部署64位版本(使用64位配置文件)时,我得到:

Checking in modified POMs...
EXECUTING: cmd.exe /X /C "hg commit --message "[maven-release-plugin] prepare release release-1.46.1" C:\Users\Gili\Documents\boost-maven-project\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-maven-plugin\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-compiler\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-api\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-date-time\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-filesystem\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-graph\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-iostreams\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-math\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-program-options\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-random\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-regex\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-serialization\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-signals\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-system\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-test\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-thread\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-wave\pom.xml"
[ERROR]
EXECUTION FAILED
  Execution of cmd : commit failed with exit code: 1.
  Working directory was: 
    C:\Users\Gili\Documents\boost-maven-project
  Your Hg installation seems to be valid and complete.
    Hg version: 1.8.2 (OK)

EXECUTING: cmd.exe /X /C "hg push https://boost-maven-project.googlecode.com/hg/"
Tagging release with the label release-1.46.1...
EXECUTING: cmd.exe /X /C "hg tag --message "[maven-release-plugin]  copy for tag release-1.46.1" release-1.46.1"
[ERROR]
EXECUTION FAILED
  Execution of cmd : tag failed with exit code: -1.
  Working directory was: 
    c:\users\gili\documents\boost-maven-project
  Your Hg installation seems to be valid and complete.
    Hg version: 1.8.2 (OK)

如果我调用单独使用 release:perform ,我得到:

[ERROR]Cannot perform release - the preparation step was stopped mid-way. Please re-run release:prepare to continue, or perform the release from an SCM tag.

如何从现有的 SCM 标记中 release:perform ?我尝试添加 -Dtag=foo 但收到相同的错误消息。

I'm trying to deploy the 32-bit and 64-bit versions of an artifact. I invoked release:prepare release:perform to deploy the 32-bit version but when I repeat the same command to deploy the 64-bit version (using the 64-bit profile) I get:

Checking in modified POMs...
EXECUTING: cmd.exe /X /C "hg commit --message "[maven-release-plugin] prepare release release-1.46.1" C:\Users\Gili\Documents\boost-maven-project\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-maven-plugin\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-compiler\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-api\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-date-time\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-filesystem\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-graph\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-iostreams\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-math\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-program-options\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-random\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-regex\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-serialization\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-signals\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-system\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-test\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-thread\pom.xml C:\Users\Gili\Documents\boost-maven-project\boost-wave\pom.xml"
[ERROR]
EXECUTION FAILED
  Execution of cmd : commit failed with exit code: 1.
  Working directory was: 
    C:\Users\Gili\Documents\boost-maven-project
  Your Hg installation seems to be valid and complete.
    Hg version: 1.8.2 (OK)

EXECUTING: cmd.exe /X /C "hg push https://boost-maven-project.googlecode.com/hg/"
Tagging release with the label release-1.46.1...
EXECUTING: cmd.exe /X /C "hg tag --message "[maven-release-plugin]  copy for tag release-1.46.1" release-1.46.1"
[ERROR]
EXECUTION FAILED
  Execution of cmd : tag failed with exit code: -1.
  Working directory was: 
    c:\users\gili\documents\boost-maven-project
  Your Hg installation seems to be valid and complete.
    Hg version: 1.8.2 (OK)

If I invoke release:perform alone, I get:

[ERROR]Cannot perform release - the preparation step was stopped mid-way. Please re-run release:prepare to continue, or perform the release from an SCM tag.

How can I release:perform from an existing SCM tag? I tried adding -Dtag=foo but got the same error message.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

北城挽邺 2024-11-10 12:24:56

回答我自己的问题。您可以使用:

mvn release:perform -DconnectionUrl=scm:hg:https://boost-maven-project.googlecode.com/hg/

但无法为 Mercurial 存储库指定标签。我提交了此错误报告: https://issues.apache.org/jira/browse/ MRELEASE-969

更新:根据https://stackoverflow.com/a/18943705/ 14731 你应该能够通过创建 release.properties 来设置标签,但我还没有对此进行测试。

Answering my own question. You can use:

mvn release:perform -DconnectionUrl=scm:hg:https://boost-maven-project.googlecode.com/hg/

but there is no way to specify a tag for Mercurial repositories. I filed this bug report: https://issues.apache.org/jira/browse/MRELEASE-969

UPDATE: According to https://stackoverflow.com/a/18943705/14731 you should be able to set the tag by creating release.properties, but I have not tested this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文