SVNAnt Trilead 罐子丢失
我下载并安装了 SVNAnt 1.3.0、Ant 1.8 和 Java 1.6。
当我尝试通过 https 进行简单的结帐时,我收到 java.lang.NoClassDefFoundError: com/trilead/ssh2/InteractiveCallback。我不确定为什么它使用 ssh 类,因为我使用的是 https。
Trilead SSH for Java 似乎不再受支持或分发,而且我无法访问旧版本的 trilead.jar。
其他人如何在没有 trilead.jar 的情况下使用 SVNAnt?有人建议追求任何其他选择吗?这是我的构建脚本。项目开始和结束标签没有正确复制,但当我在本地机器上执行它时它们就在那里。
更新 经过一番谷歌搜索后,我在另一个项目的 svn 存储库中找到了 trilead.jar,它确实修复了 NoClassDefFoundError ,但 Trilead 不会分发该 jar 真是太糟糕了。
<?xml version="1.0"?>
<property name="svn.base" value="C:\Program Files\svnant\svnant-1.3.0"/>
<property name="svn.lib" value="${svn.base}/lib"/>
<property name="username" value="user"/>
<property name="password" value="password"/>
<path id="svnant.classpath" >
<fileset dir= "${svn.lib}" >
<include name= "*.jar" />
</fileset>
</path>
<typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="svnant.classpath" />
<target name="checkout">
<svn username="${username}" password="${password}" >
<checkout url="https://svn-server/svn/project" destPath="C:\SVNRepositories\checkout" />
</svn>
</target>
I downloaded and installed SVNAnt 1.3.0, Ant 1.8, and Java 1.6.
When I try to do a simple checkout via https, I get a java.lang.NoClassDefFoundError: com/trilead/ssh2/InteractiveCallback. I'm not sure why it's using an ssh class since I'm using https.
Trilead SSH for Java doesn't seem to be supported or distributed anymore, and I don't have access to an older version of trilead.jar.
How is everyone else using SVNAnt without trilead.jar? Does anyone recommend pursuing any other options? Here is my build script. The project open and end tags didn't copy over correctly, but they are there when I execute it on my local box.
Update I was able to find trilead.jar in another project's svn repository after some googling, and it did indeed fix the NoClassDefFoundError It's too bad that Trilead won't distribute the jar.
<?xml version="1.0"?>
<property name="svn.base" value="C:\Program Files\svnant\svnant-1.3.0"/>
<property name="svn.lib" value="${svn.base}/lib"/>
<property name="username" value="user"/>
<property name="password" value="password"/>
<path id="svnant.classpath" >
<fileset dir= "${svn.lib}" >
<include name= "*.jar" />
</fileset>
</path>
<typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="svnant.classpath" />
<target name="checkout">
<svn username="${username}" password="${password}" >
<checkout url="https://svn-server/svn/project" destPath="C:\SVNRepositories\checkout" />
</svn>
</target>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以从这里下载: http://www.findjar.com/jar/com/trilead/trilead-ssh2/build213-svnkit-1.3-patch/trilead-ssh2-build213-svnkit-1.3 -patch.jar.html
Truong
You can download it from here: http://www.findjar.com/jar/com/trilead/trilead-ssh2/build213-svnkit-1.3-patch/trilead-ssh2-build213-svnkit-1.3-patch.jar.html
Truong
我必须从 svnant 类路径中删除 svnkkit.jar。我使用 subant 进行多次签出,第二次签出使用 svnkit 而不是 javahl。这适用于 ant 1.7、java6 和 svnant 1.30。
I had to remove svnkkit.jar from my svnant classpath. I was doing multiple checkouts using subant and the second check out used svnkit instead of javahl. this applied for ant 1.7, java6 and svnant 1.30.
我在设置 SVNAnt 时遇到了类似的问题。我写了一篇博文来描述如何解决该问题:
http://www.willjohnson.me/博客/?p=128
I had a similar issue when I was setting up SVNAnt. I wrote a blogpost that describes how to resolve the issue:
http://www.willjohnson.me/blog/?p=128