How to get a Maven release to work with git?

willCode4Beer picture willCode4Beer · Mar 25, 2011 · Viewed 14.5k times · Source

Trying to release, I always get this:

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Unable to commit files
Provider message:
The git-commit command failed.
Command output:

There is nothing by "command output".

Is there some secret configuration trick to get maven to play nice with git?

Answer

VonC picture VonC · Mar 26, 2011

The only case I saw where the git-commit command output was empty was on issue 556, where the following solution was proposed:

I had exactly the same problem as you; and:

  • removing the release.properties and
  • putting back my pom version to a SNAPSHOT (it was previously changed by the plugin) version

resolved the problem; the process ended successfully.