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

时间:2013-01-08 01:42:38

标签: svn maven branch release svn-externals

我正在使用

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 个答案:

答案 0 :(得分:1)

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

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