关于如何用maven做版本管理,请参考这边文章(http://juvenshun.iteye.com/blog/376422)
mac os 系统下执行下列命令
mvn -s /Users/Johnny/settings.xml release:prepare
抛出如下错误,说svn账号权限不对
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5:prepare (default-cli) on project mbg-plugin: Unable to commit files
[ERROR] Provider message:
[ERROR] The svn command failed.
[ERROR] Command output:
[ERROR] svn: E215004: Authentication failed and interactive prompting is disabled; see the --force-interactive option
[ERROR] svn: E215004: Commit failed (details follow):
[ERROR] svn: E215004: Unable to connect to a repository at URL 'http://192.168.50.120/svn/misc/trunk/tcxy-mbg-plugin'
[ERROR] svn: E215004: No more credentials or we tried too many times.
[ERROR] Authentication failed
[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
这是由于mac的账号管制的问题(需要付一次权限),只需要在当前目录下随意执行一个svn命令(比如svn update),系统会跳出一个提示框,说是否允许svn获取钥匙串里的账号,允许就可以了,然后再执行上面的命令应该就可以了。