我在构建 Maven 项目时遇到以下错误。有解决这个问题的想法吗?
[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也能解决这个问题。
- buildnumber-maven-plugin v1.4 可与 git v2.9.2 配合使用,但是not与 v1.9.*
- buildnumber-maven-plugin v1.3 可与 git v1.9 配合使用。*
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)