I am trying to make an mvn release, but it does not work due to problems with git. I have done this several times before without this problem, and I really do not understand why and how this happens.
At first I did this by doing mvn release: Iβll get ready, but I will get around it by adding the last line shown below to my root-pom:
<artifactId>maven-release-plugin</artifactId> <configuration> <preparationGoals>clean install</preparationGoals> <pushChanges>false</pushChanges>
But now, when I try to make mvn release: execute, I get the error message again:
[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
I donβt understand where the idea came from that my git -installation folder should be a git repository! The git clone-log command registered just before the error does not contain a link to this folder.
Tobb
source share