'svn'不被识别为内部或外部命令 [英] 'svn' is not recognized as an internal or external command

查看:148
本文介绍了'svn'不被识别为内部或外部命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在Net bean IDE上构建我的Maven应用程序时,出现此错误,请帮忙.

When i am trying to build my maven application on net beans IDE i am get this error, can any please help me out.

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

推荐答案

我看到您正在执行以下行:

I see you're executing this line:

cmd.exe /X /C "svn --non-interactive update D:\server

这意味着在%PATH%变量中设置的任何目录中都找不到svn.batsvn.

That means there is no svn.bat or svn found in any directories set in your %PATH% variable.

您的Windows系统上安装了Subversion吗?如果您使用的是Subversion的CollabNet版本,则它应该已经自动更新了PATH,以在变量中包含C:\Program Files\Subversion\bin或类似内容.如果不是,请打开系统控制面板",转到"高级"选项卡,然后单击"设置环境变量" .找到PATH环境变量,然后添加svn.exe程序所在的目录.

Do you have Subversion installed on your Windows system? If you used the CollabNet version of Subversion, it should have automatically updated your PATH to include C:\Program Files\Subversion\bin or something similar in your %PATH% variable. If not, open the System Control Panel, go to the Advanced tab, and click on Set Environment Variables. Find the PATH environment variable and add the directory where the svn.exe program is located.

如果尚未安装Subversion,请从CollabNet,SlikSVN或Wandisco安装.

If you haven't installed Subversion, install it from either CollabNet, SlikSVN, or Wandisco.

这篇关于'svn'不被识别为内部或外部命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆