关于如何用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获取钥匙串里的账号,允许就可以了,然后再执行上面的命令应该就可以了。
 
                   
                   
                   
                   
                            
 
                             本文提供了解决Mac OS系统中Maven执行release:prepare命令时出现的svn账号权限错误的方法,通过在当前目录下执行任意svn命令以获取钥匙串里的账号权限,从而顺利执行Maven版本管理任务。
本文提供了解决Mac OS系统中Maven执行release:prepare命令时出现的svn账号权限错误的方法,通过在当前目录下执行任意svn命令以获取钥匙串里的账号权限,从而顺利执行Maven版本管理任务。
           
       
           
                 
                 
                 
                 
                 
                
               
                 
                 
                 
                 
                
               
                 
                 扫一扫
扫一扫
                     
              
             
                   5753
					5753
					
 被折叠的  条评论
		 为什么被折叠?
被折叠的  条评论
		 为什么被折叠?
		 
		  到【灌水乐园】发言
到【灌水乐园】发言                                
		 
		 
    
   
    
   
             
            


 
            