由于Nexus存储库的问题,我需要重新运行mvn release:perform,最好不要创建新的Git标签,而是重用第一次运行时创建的标签。
我试过了
mvn release:perform
-DconnectionUrl=scm:git:git@github.com:ops4j/org.ops4j.pax.exam2.git
-Dtag=exam-reactor-3.3.0和
mvn release:perform
-DconnectionUrl=scm:git:git@github.com:ops4j/org.ops4j.pax.exam2.git
-Dscm.tag=exam-reactor-3.3.0但在这两种情况下,克隆都会失败,因为标签/分支参数没有转发到Git:
[INFO] --- maven-release-plugin:2.4:perform (default-cli) @ exam-reactor ---
[INFO] Checking out the project to perform the release ...
[INFO] Executing: /bin/sh -c cd /home/hwellmann/work/org.ops4j.pax.exam2/target && git clone --branch git@github.com:ops4j/org.ops4j.pax.exam2.git /home/hwellmann/work/org.ops4j.pax.exam2/target/checkout注意:mvn release:prepare创建的release.properties和其他东西不再可用。
发布于 2013-09-22 20:14:04
此问题以SCM-729的形式提交,目前尚未解决。同时,您可以考虑一种变通方法。
最简单的方法就是忘记maven-release-plugin;克隆,签出这个标记,然后运行mvn deploy。
或者,也可以对手动编辑的release.properties文件使用release:perform。设置scm.tag和scm.url,然后运行release:perform。
https://stackoverflow.com/questions/18943347
复制相似问题