Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何运行release:从给定的Git标记执行?_Git_Maven_Maven Release Plugin - Fatal编程技术网

如何运行release:从给定的Git标记执行?

如何运行release:从给定的Git标记执行?,git,maven,maven-release-plugin,Git,Maven,Maven Release Plugin,由于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 及 但在这两种情况下,克隆都会失败,因为标记/分支参数没有转发到Git: [INFO] --- mave

由于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

但在这两种情况下,克隆都会失败,因为标记/分支参数没有转发到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
注意:
release.properties
和由
mvn release:prepare
创建的其他内容不再可用。

此问题作为存档,目前尚未解决。同时,您可能会考虑解决方案。

最简单的方法是忘记
maven发布插件
;克隆,签出该标记,然后运行
mvn deploy


或者,您可以使用手动编辑的
release.properties
文件使用
release:perform
。设置
scm.tag
scm.url
,然后运行
release:perform

好的,我将观看JIRA问题<代码>mvn部署不签署工件或生成Javadoc。正如我所说,
release.properties
不见了,所以我无法调整它。不要调整它:创建一个新文件,只设置这两个属性。
[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