Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot get the branch information from the scm repository

I am getting following error in building the maven project. Any idea in solving this?

 [ERROR] Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.4:create (default) on project pwc-em: Cannot get the branch information from the scm repository :

[ERROR] Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "git" (in directory "C:\Users\vmasama\Documents\workspace-sts-3.7.2.RELEASE\pwc-em"): CreateProcess error=2, The system cannot find the file specified
[ERROR] ->
like image 416
Manoj Masakorala Avatar asked Feb 23 '16 08:02

Manoj Masakorala


1 Answers

I solved the same issue by updating my git version. But downgrading the version of the maven plugin to 1.13 will also solve this issue.

  • buildnumber-maven-plugin v1.4 works with git v2.9.2 but not with v1.9.*
  • buildnumber-maven-plugin v1.3 works with git v1.9.*
like image 171
Sparwer Avatar answered Oct 18 '22 16:10

Sparwer