Error creating Maven plugin

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!

+5
source share
2 answers

You have to install git, obviously!

If your OS is similar to UNIX, use some kind of package manager, apt-get install git for Debian derivatives and ubuntu.

If your OS is Windows, make sure git.exe %PATH turned on.

+1
source

Install GIT first, then try again

0
source

Source: https://habr.com/ru/post/1239205/


All Articles