'svn' is not recognized as an internal or external command

When I try to create my maven application on net beans IDE, I get this error if anyone can help me.

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 
+6
source share
2 answers

I see that you are executing this line:

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

This means that there are no svn.bat or svn found in any directories set in your% PATH% variable.

Do you have Subversion installed on your Windows system? If you used the Subversion version for CollabNet, it should automatically update 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 "Set environment variables." Locate the PATH environment variable and add the directory where svn.exe is located.

If you did not install Subversion, install it from CollabNet, SlikSVN, or Wandisco.

+13
source

Perhaps you should use the javasvn provider. Thus, your build / release will not depend on the local installation of the SVN client and the setting of env variables.

 <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> 
+8
source

All Articles