Maven:从现有标签部署?

时间:2011-04-27 01:15:48

标签: maven mercurial maven-3

我正在尝试部署32位和64位版本的工件。我调用release:prepare release: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,但收到了相同的错误消息。

1 个答案:

答案 0 :(得分:1)

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

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来设置代码,但我还没有对此进行测试。