使用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, 系统找不到指定的文件。
大概意思就是没有办法在那个路径下执行git程序。耽误了好长时间,后面灵机一动,解决了,解决办法就是:在电脑的环境变量配置一下git,然后idea重启。