mac os下用maven做版本发布的svn权限问题

关于如何用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获取钥匙串里的账号,允许就可以了,然后再执行上面的命令应该就可以了。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值