Maven发布插件无法提交 - E155010,节点路径有两次路径 - Cygwin& DOS

时间:2014-05-20 13:54:20

标签: java maven svn cygwin

我的maven和svn设置有问题。我最近一直在玩git,现在我看到了SVN的问题。我有一种感觉安装强制SVN更新,但从我安装的软件的外观看起来并不是这样。

我正在使用cygwin,但是当我通过命令提示符尝试此问题时,也会出现问题。

我机器上的设置是:

  • svn,版本1.7.14(r1542130)
  • Apache Maven 3.0.5(r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 13:51:28 + 0000)
  • SlikSvn 1.7.17
  • Cygwin 1.7.29(0.272 / 5/3)

我可以使用Tortoise SVN(版本1.7.14)提交SVN并从中进行更新,但每当我尝试使用发行版释放我的应用程序:prepare和release:perform命令时,我会遇到以下错误。问题是结帐的路径正在连接到自身。

[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] BUILD SUCCESS
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time: 23.693s
[INFO] [INFO] Finished at: Tue May 20 14:19:59 BST 2014
[INFO] [INFO] Final Memory: 17M/138M
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] Checking in modified POMs...
[INFO] Executing: cmd.exe /X /C "svn --non-interactive commit --file C:\cygwin\tmp\maven-scm-1575361850.commit --targets C:\cygwin\tmp\maven-scm-6249519314346478050-targets"
[INFO] Working directory: C:\Users\danielt\Workspace\Common\Adapters\Zuul\trunk
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 35.022s
[INFO] Finished at: Tue May 20 14:19:59 BST 2014
[INFO] Final Memory: 13M/100M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.0:prepare (default-cli) on project zuul-api: Unable to commit files
[ERROR] Provider message:
[ERROR] The svn command failed.
[ERROR] Command output:
[ERROR] svn: E155010: Commit failed (details follow):
[ERROR] svn: E155010: The node '/cygdrive/c/Users/danielt/Workspace/Common/Adapters/Zuul/trunk/C:/Users/danielt/Workspace/Common/Adapters/Zuul' was not found.
[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

我使用的命令是:

mvn release:prepare -Dtag=1.8.30 -DreleaseVersion=1.8.30 -DdevelopmentVersion=1.8.31-SNAPSHOT -Dresume=false -DautoVersionSubmodules=true release:perform

奇怪的是,maven很高兴能够检查本地修改,如下所示。

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Zuul Api 1.8.30-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-release-plugin:2.0:prepare (default-cli) @ zuul-api ---
[INFO] Verifying that there are no local modifications...
[INFO] Executing: cmd.exe /X /C "svn --non-interactive status"
[INFO] Working directory: C:\Users\danielt\Workspace\Common\Adapters\Zuul\trunk

如果有人知道svn,maven和/或cywgin之间存在任何版本不兼容,我会很高兴听到他们并试一试,看看他们是否解决了我的问题。

1 个答案:

答案 0 :(得分:3)

感谢上帝在今天早上尝试解决这个问题时找到的this maven issue

Samuel Kerrien在31 / Mar / 07发表的评论向我指出了我的PATH变量。

  

我遇到了同样的问题并确保Windows'颠覆是在PATH的上游,在PATH做了伎俩。   希望有所帮助

基本上,这归结为PATH变量和组件顺序的问题。

我有:

...
C:\cygwin\bin;
...
C:\Program Files\SlikSvn\bin;
...

但是,SVN的Windows版本需要首先让mvn获取正确的文件路径而不是cygwin中的相关文件路径。所以改成它:

...
C:\Program Files\SlikSvn\bin;
...
C:\cygwin\bin;
...