【发布时间】:2016-07-26 23:51:55
【问题描述】:
当我尝试在 net beans IDE 上构建我的 maven 应用程序时,出现此错误,请帮助我。
Checking for local modifications: skipped.
Executing: cmd.exe /X /C "svn --non-interactive update D:\server"
Working directory: D:\server
Provider message:
The svn command failed.
Command output:
'svn' is not recognized as an internal or external command,
operable program or batch file.
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 2.070s
Finished at: Mon Dec 17 19:24:19 IST 2012
Final Memory: 15M/175M
------------------------------------------------------------------------
Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.1:create (default) on project red5-server: Couldn't update project. Error! -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
【问题讨论】:
-
svn 命令未在您的
PATH环境变量中正确设置。将 PATH 设置为 svn 客户端的 /bin 文件夹。 -
要么将 svn 添加到你的 %PATH% 环境变量(如果你安装了它),要么下载并安装 SVN。查看官方二进制包列表subversion.apache.org/packages.html#windows