2012-12-17 3 views
6

net beans IDE에서 Maven 응용 프로그램을 빌드하려고 할 때이 오류가 발생합니다. 어떤 도움을 주실 수 있습니까?'svn'이 내부 또는 외부 명령으로 인식되지 않습니다

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

'PATH' 환경 변수에 svn 명령이 올바르게 설정되지 않았습니다. PATH를 svn 클라이언트의/bin 폴더로 설정하십시오. –

+0

% PATH % env 변수에 svn을 추가하거나 (설치 한 경우) SVN을 다운로드하여 설치하십시오. http://subversion.apache.org/packages.html#windows – bahrep

답변

13

난 당신이 줄을 실행하고 참조 :

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

당신 %의 PATH % 변수에 설정된 디렉토리에 더 svn.bat 또는 svn이없는 것을 의미한다.

Windows 시스템에 Subversion을 설치 했습니까? Subversion의 CollabNet 버전을 사용했다면, % PATH % 변수에 C:\Program Files\Subversion\bin 또는 비슷한 것을 포함하도록 PATH가 자동으로 업데이트되었습니다. 그렇지 않은 경우 시스템 제어판을 열고 고급 탭으로 이동하여 환경 변수 설정을 클릭하십시오. PATH 환경 변수를 찾고 svn.exe 프로그램이있는 디렉터리를 추가하십시오.

Subversion을 설치하지 않은 경우 CollabNet, SlikSVN 또는 Wandisco에서 설치하십시오.

+1

또는 VisualSVN의 SVN 명령 줄 도구 (http://www.visualsvn.com/downloads/)에서 공식 바이너리 패키지 목록을 참조하십시오. lol – bahrep

8

javasvn 공급자를 사용해야합니다. 그렇게하면 빌드/릴리스는 SVN 클라이언트의 로컬 설치 및 env 변수 설정에 의존하지 않습니다.

<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>[email protected]{project.version}</tagNameFormat> 
     </configuration> 
</plugin> 
+0

같은 오류가 발생했습니다. 릴리스 플러그인 버전 2.5.3을 사용하고 있지만 com.google.code.maven-scm-provider-svnjava 종속성을 선언하는 옵션은 없습니다. 어떤 제안 – Mukun

관련 문제