Same with version 2.3.2 (many thanks of course for pointing out the old version 
I was trying with).

[INFO] Checking in modified POMs...
[INFO] Executing: cmd.exe /X /C "git add -- pom.xml"
[INFO] Working directory: C:\users\mli\nuc\core\master\main\inuc
[INFO] Executing: cmd.exe /X /C "git status"
[INFO] Working directory: C:\users\mli\nuc\core\master\main\inuc
[INFO] Executing: cmd.exe /X /C "git commit --verbose -F 
C:\cygwin\tmp\maven-scm-915771020.commit pom.xml"
[INFO] Working directory: C:\users\mli\nuc\core\master\main\inuc
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.227s
[INFO] Finished at: Tue Nov 13 16:45:35 CET 2012
[INFO] Final Memory: 6M/102M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-release-plugin:2.3.2:prepare (default-cli) on 
project inuc: Unable to commit files
[ERROR] Provider message:
[ERROR] The git-commit command failed.
[ERROR] Command output:
[ERROR] fatal: could not read log file 
'inuc/C:\cygwin\tmp\maven-scm-915771020.commit': No such file or directory

Strangely enough, it looks like a Git issue?

$ echo X > "C:\cygwin\tmp\commit"
$ cat "C:\cygwin\tmp\commit"
X
$ cmd.exe /X /C "git commit --verbose -F C:\cygwin\tmp\commit pom.xml"
fatal: could not read log file 'inuc/C:\cygwin\tmp\commit': No such file or 
directory


$ git --version
git version 1.7.9




>________________________________
> From: Robert Scholte <[email protected]>
>To: Maven Users List <[email protected]> 
>Sent: Tuesday, November 13, 2012 3:55 PM
>Subject: Re: mvn release:prepare cannot git-commit the pom.xml change
> 
>The logging says: "org.apache.maven.plugins:maven-release-plugin:2.0:prepare"
>This means you're using a pretty old version of the maven-release-plugin.
>Try to lock the version on 2.3.2 first.
>
>Robert
>
>
>Op Tue, 13 Nov 2012 15:17:33 +0100 schreef Martin Lichtin <[email protected]>:
>
>> Hi
>> As a first-time user of the "release" plugin, I'm running into the following 
>> problem:
>> 
>> [INFO] Checking in modified POMs...
>> [INFO] Executing: cmd.exe /X /C "git add -- pom.xml"
>> [INFO] Working directory: C:\Users\mli\nuc\core\master\main\inuc
>> [INFO] Executing: cmd.exe /X /C "git status"
>> [INFO] Working directory: C:\Users\mli\nuc\core\master\main\inuc
>> [INFO] Executing: cmd.exe /X /C "git commit --verbose -F 
>> C:\cygwin\tmp\maven-scm-1106545469.commit pom.xml"
>> [INFO] Working directory: C:\Users\mli\nuc\core\master\main\inuc
>> [INFO] 
>> ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO] 
>> ------------------------------------------------------------------------
>> [INFO] Total time: 6.521s
>> [INFO] Finished at: Tue Nov 13 14:44:27 CET 2012
>> [INFO] Final Memory: 7M/104M
>> [INFO] 
>> ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal 
>> org.apache.maven.plugins:maven-release-plugin:2.0:prepare (default-cli) on 
>> project inuc: Unable to commit files
>> [ERROR] Provider message:
>> [ERROR] The git-commit command failed.
>> [ERROR] Command output:
>> [ERROR] fatal: could not read log file 
>> 'inuc/C:\cygwin\tmp\maven-scm-1106545469.commit': No such file or directory
>> 
>> Note how the last line shows a log file name erroneously prefixed with the 
>> module name.
>> Is this a problem caused by cmd.exe versus cygwin interaction? Or could it 
>> even be a git bug.
>> 
>> Martin
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [email protected]
>For additional commands, e-mail: [email protected]
>
>
>
>

Reply via email to