java SVN 错误:svn:E200007:“org.tmatesoft.svn.core.wc2.SvnMerge”的运行程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/33402805/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
SVN Error: svn: E200007: Runner for 'org.tmatesoft.svn.core.wc2.SvnMerge'
提问by Vinod
I am trying to merge branch to trunk using SVNKIT java API.
我正在尝试使用 SVNKIT java API 将分支合并到主干。
The code for it is as follows:
它的代码如下:
String branchURL = "<Branch URL>";
SVNURL branchSVNURL = SVNURL.parseURIDecoded(branchURL);//SVN Branch URL
String WC_PATH= "<Some Path>";//This is the Working copy path which has the Trunk checked out
File svnWorkingCopy = new File(WC_PATH);
SVNDiffClient svnDiffClient;//This is initialized using SVNClientManager
try{
//doMerge(java.io.File path1, SVNRevision revision1, SVNURL url2, SVNRevision revision2, java.io.File dstPath, SVNDepth depth, boolean useAncestry, boolean force, boolean dryRun, boolean recordOnly)
svnDiffClient.doMerge(branchSVNURL, SVNRevision.HEAD,null,svnWorkingCopy,SVNDepth.INFINITY,false, false, false, false);
}catch(Exception e){
e.printStackTrace();
}
Running this code throws the following error:
运行此代码会引发以下错误:
org.tmatesoft.svn.core.SVNException: svn: E200007: Runner for 'org.tmatesoft.svn.core.wc2.SvnMerge' command have not been found; probably not yet implement in this API.
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64)
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51)
at org.tmatesoft.svn.core.wc2.SvnOperationFactory.getImplementation(SvnOperationFactory.java:1375)
at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1224)
at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294)
at org.tmatesoft.svn.core.wc.SVNDiffClient.doMerge(SVNDiffClient.java:2389)
at com.test.TestSVN.merge(TestSVN.java:109)
at com.test.TestSVN.main(TestSVN.java:45)
I ran this piece of code with SVNKIT version 1.7.11and 1.8.10and got the same error.
我跑这段代码与SVNKIT版本1.7.11和1.8.10,并得到了同样的错误。
SVN command line equivalent for the code mentioned above is
与上述代码等效的 SVN 命令行是
svn merge <branchurl> <WC_PATH>
Let know if anything needs to be done to fix this issue.
让我们知道是否需要采取任何措施来解决此问题。
回答by Damián Rafael Lattenero
回答by u4251056
notice exception msg :
注意异常消息:
Runner for 'org.tmatesoft.svn.core.wc2.SvnMerge' command have not been found; probably not yet implement in this API.
尚未找到“org.tmatesoft.svn.core.wc2.SvnMerge”命令的运行程序;可能尚未在此 API 中实现。
try to change another SVN interface client, `JavaHL(JNI) 1.8.10(r1615264) , supports svn merge command! it works for me!
换一个SVN接口客户端,`JavaHL(JNI) 1.8.10(r1615264) ,支持svn merge命令!这个对我有用!
回答by Joachim L?ning
I had the same error in Eclipse when merging with SVNKIT and the CollabNet client, after switching to JavaHL merging work fine.
在切换到 JavaHL 合并工作正常后,与 SVNKIT 和 CollabNet 客户端合并时,我在 Eclipse 中遇到了同样的错误。
Note you have to use matching versions of your native subversion vs. subclipe->JavaHL library as decribed in the subclipe wiki. For example svn 1.9.x => subclipe 1.12
请注意,您必须使用与 subclipe->JavaHL 库匹配的本机 subversion 版本,如 subclipe wiki 中所述。例如 svn 1.9.x => subclipe 1.12
回答by flm
Are you running Eclipse? Add this software repository http://subclipse.tigris.org/update_1.12.xAnd install everything.
你在运行 Eclipse 吗?添加此软件存储库http://subclipse.tigris.org/update_1.12.x并安装所有内容。
回答by robor78
I had the same error in Jenkins when using the Subversion plugin. When I googled I landed up here.
使用Subversion 插件时,我在 Jenkins 中遇到了同样的错误。当我用谷歌搜索时,我来到了这里。
To fix this in Jenkins I did
为了在 Jenkins 中解决这个问题,我做了
Manage Jenkins -> Configure System -> Scroll down to the subversion settings -> select your subversion workspace version
管理 Jenkins -> 配置系统 -> 向下滚动到 subversion 设置 -> 选择你的 subversion 工作区版本
e.g.
例如