我正在尝试发布mvn,但由于git问题而失败.在没有这个问题之前我已经多次这样做了,我真的不明白为什么/如何发生这种情况.
我首先得到它做mvn release:prepare,但通过将下面显示的最后一行添加到我的root-pom来解决它:
<artifactId>maven-release-plugin</artifactId>
<configuration>
<preparationGoals>clean install</preparationGoals>
<pushChanges>false</pushChanges>
Run Code Online (Sandbox Code Playgroud)
但是现在,当我尝试执行mvn release:perform时,我再次收到错误消息:
[INFO] Executing: cmd.exe /X /C "git clone file://C\Users\torbjornk\nfr\MyProject/ C:\Users\torbjornk\nfr\MyProject\target\checkout"
[INFO] Working directory: C:\Users\torbjornk\nfr\MyProject\target
[ERROR] The git-clone command failed.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Unable to checkout from SCM
Provider message:
The git-clone command failed.
Command output:
fatal: 'C:/Program Files (x86)/Git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)
我不知道我的git-installation-folder应该是一个git存储库!在错误发生之前记录的git clone-command也不包含对此文件夹的引用.