我正在尝试执行mvn版本:在Mac OS X 10.5上进行准备,但失败时显示以下消息。
[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安装并且没有任何问题。 (/选择/颠覆/ bin中/ SVN)。
答案 0 :(得分:0)
我为svn二进制创建了一个符号链接,它有所帮助:
ln -s /opt/subversion/bin/svn /bin/svn