我已经使用 Maven 导入了一个项目,该项目具有使用 STP-SCA 工具的模块。聚甲醛尝试通过 SVN 下载 STP-SCA 工具。
当我这样做时mvn install
,POM.xml
我在 cmd 上得到以下信息
[INFO]
[INFO] --- maven-scm-plugin:1.6:checkout (checkout) @ sca-model ---
[INFO] Removing C:\WorkSpace\FrascatiTrunk\org.eclipse.stp.sca.model\org.eclipse
.stp.sca\target\checkout
[INFO] Executing: cmd.exe /X /C "svn --non-interactive checkout svn://dev.eclips
e.org/svnroot/soa/org.eclipse.stp.sca-tools/org.eclipse.stp.sca/tags/3.5SR1/org.
eclipse.stp.sca C:\WorkSpace\FrascatiTrunk\org.eclipse.stp.sca.model\org.eclipse
.stp.sca\target\checkout"
[INFO] Working directory: C:\WorkSpace\FrascatiTrunk\org.eclipse.stp.sca.model\o
rg.eclipse.stp.sca\target
[ERROR] Provider message:
[ERROR] The svn command failed.
[ERROR] Command output:
[ERROR] "svn" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.778s
[INFO] Finished at: Mon Oct 01 16:30:13 CEST 2012
[INFO] Final Memory: 7M/108M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-plugin:1.6:che
ckout (checkout) on project sca-model: Command failed.The svn command failed.
如果我在 Eclipse 上尝试 svn 目录,它就可以工作。
为什么 svn 命令从 Maven 失败?