Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
';svn';不被识别为内部或外部命令_Svn_Maven_Cmd - Fatal编程技术网

';svn';不被识别为内部或外部命令

';svn';不被识别为内部或外部命令,svn,maven,cmd,Svn,Maven,Cmd,当我试图在NetBeans 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'

当我试图在NetBeans 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

我看到你在执行这一行:

cmd.exe /X /C "svn --non-interactive update D:\server
这意味着在%PATH%变量中设置的任何目录中都找不到
svn.bat
svn

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


如果尚未安装Subversion,请从CollabNet、SlikSVN或Wandisco安装它。

您可能应该使用
javasvn
提供程序。这样,您的构建/发布将不依赖于SVN客户端的本地安装和环境变量的设置

<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-release-plugin</artifactId>
        <version>2.2.2</version>
        <dependencies>
            <dependency>    
                <groupId>com.google.code.maven-scm-provider-svnjava</groupId>
                <artifactId>maven-scm-provider-svnjava</artifactId>
                <version>1.6</version>
            </dependency>
        </dependencies>
        <configuration>
            <providerImplementations>
                <svn>javasvn</svn>
            </providerImplementations>
            <goals>deploy</goals>
            <tagBase>https://svn.somedomain/project/tags</tagBase>
            <autoVersionSubmodules>true</autoVersionSubmodules>
            <tagNameFormat>project-@{project.version}</tagNameFormat>
        </configuration>
</plugin>

org.apache.maven.plugins
maven发布插件
2.2.2
com.google.code.maven-scm-provider-svnjava
maven scm提供程序svnjava
1.6
javasvn
部署
https://svn.somedomain/project/tags
真的
项目-@{project.version}

svn命令在
PATH
环境变量中设置不正确。设置svn客户端/bin文件夹的路径。将svn添加到%PATH%env变量(如果已安装)或下载并安装svn。请参阅位于的官方二进制软件包列表或VisualSVN中的SVN命令行工具:;)洛莉也犯了同样的错误。我使用的是发布插件版本2.5.3,但没有选项来声明com.google.code.maven-scm-provider-svnjava依赖性。有什么建议吗