I am new to Maven and I am assigned to a project with several modules working with a parent pom file. I wanted to change the draft snapshot to release. Even if I add the scm tag and the Maven release plugin, release: the preparation target does not work.
This is what I added to the parent pom.xml file:
<project> ... <scm> <developerConnection>scm:git:http://localhost:8181/gitblit /r/server/myCompany.git</developerConnection> </scm> ... //And the plugin: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <version>2.5.3</version> </plugin> ... <project>
Here is the error:
Error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release- plugin:2.5.3:prepare (default-cli) on project myParentProject: Unable to commit files [ERROR] Provider message: [ERROR] The git-add command failed. [ERROR] Command output: [ERROR] 'git' is not recognized as an internal or external command, [ERROR] operable program or batch file..
Thanks in advance!
source share