无法从scm存储库获取分支信息 [英] Cannot get the branch information from the scm repository

查看:295
本文介绍了无法从scm存储库获取分支信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在构建Maven项目时出现以下错误.解决这个有什么想法吗?

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] ->

推荐答案

我通过更新git版本解决了相同的问题.但是将Maven插件的版本降级到1.13也可以解决此问题.

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适用于git v2.9.2,但不适用于与v1.9.*
  • buildnumber-maven-plugin v1.3与git v1.9一起使用.*
  • 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.*

这篇关于无法从scm存储库获取分支信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆