Home » Java » java – Unable to commit files. Maven-Exceptionshub

java – Unable to commit files. Maven-Exceptionshub

Posted by: admin February 25, 2020 Leave a comment

Questions:

I’ve problem with release:prepare in Maven. When I enter “mvn release:prepare” I get error

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project com.joledzki.petclinic2: Unable to commit files
[ERROR] Provider message:
[ERROR] The git-commit command failed.
[ERROR] Command output:
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

pom.xml

 <scm>
    <developerConnection>scm:git:[email protected]:JakubOledzki/petclinic2.git</developerConnection>
  <tag>com.joledzki.petclinic2-0.0.2</tag>

Build work correct. Someone has a solution ?

How to&Answers: