当前位置:   article > 正文

IDEA提示: Error while executing command. Error while executing process. Cannot run program "git"_failed to execute goal org.codehaus.mojo:buildnumb

failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.4:create

使用idea在打包的时候,用了org.codehaus.mojo:buildnumber-maven-plugin这个插件,打包的过程中就报错了:

[ERROR] Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.4:create (default) on project gwmanage: Cannot get the revision 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 "E:\code\gwmanage"): CreateProcess error=2, 系统找不到指定的文件。
  • 1
  • 2

大概意思就是没有办法在那个路径下执行git程序。耽误了好长时间,后面灵机一动,解决了,解决办法就是:在电脑的环境变量配置一下git,然后idea重启。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/天景科技苑/article/detail/969554
推荐阅读
相关标签
  

闽ICP备14008679号