Maven:从现有标签部署?
我正在尝试部署工件的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
回答我自己的问题。您可以使用:
但无法为 Mercurial 存储库指定标签。我提交了此错误报告: https://issues.apache.org/jira/browse/ MRELEASE-969
更新:根据https://stackoverflow.com/a/18943705/ 14731 你应该能够通过创建
release.properties
来设置标签,但我还没有对此进行测试。Answering my own question. You can use:
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.