2013-01-08 29 views
1

我用使用maven的发布插件时,为什么会出现svn:Illegal repository URL'错误?

mvn release:branch ... 

而且我得到了这个神秘的错误:

[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 27.391s 
[INFO] Finished at: Mon Jan 07 17:22:46 PST 2013 
[INFO] Final Memory: 7M/245M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.3.2:branch (default-cli) on project XXX: Unable to commit files 
[ERROR] Provider message: 
[ERROR] The svn command failed. 
[ERROR] Command output: 
[ERROR] svn: Commit failed (details follow): 
[ERROR] svn: Illegal repository URL '' 
[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 

是什么原因造成的?

回答

1

这实际上与maven很少有关系。 The answer is in this other stack overflow answer. maven版本插件modifies all the poms in your project更新版本号然后提交它们。如果其中一个poms在svn extern中,它会尝试在一个版本中进行本地和外部修改,并给出这个非常神秘的错误消息。希望这会帮助别人。

不幸的是,我唯一知道的就是停止使用externs或停止使用release插件。

相关问题