0

我正在尝试在 Mac OS X 10.5 上执行 mvn release:prepare,但失败并显示以下消息。

[INFO] Working directory: /Users/km/.../maven-release-project
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.043s
[INFO] Finished at: Sat May 21 19:23:29 CEST 2011
[INFO] Final Memory: 6M/528M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.1:prepare (default-cli) on project 900-release: Unable to check for local modifications
[ERROR] Provider message:
[ERROR] The svn command failed.
[ERROR] Command output:
[ERROR] /bin/sh: svn: command not found
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

问题是已安装 svn 并且可以正常工作。(/opt/subversion/bin/svn)。

4

1 回答 1

0

我创建了一个到 svn 二进制文件的符号链接,它有帮助:

ln -s /opt/subversion/bin/svn /bin/svn
于 2012-03-29T07:41:35.713 回答