【发布时间】:2016-06-04 23:24:13
【问题描述】:
我在构建 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.exe搜索路径错误。git是否已安装并在 PATH 中可用? -
它已安装,我不确定它是否在路径中可用。我如何检查这个?
-
只要打开一个DOS shell(cmd.exe),输入“git”,你就会看到。
标签: java maven spring-mvc