SVNAnt Trilead jar is missing

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 java.lang.NoClassDefFoundError: com / trilead / ssh2 / InteractiveCallback. I'm not sure why it uses the ssh class since I use https.

Trilead SSH for Java is no longer supported or distributed, and I do not have access to an older version of trilead.jar.

How does everyone else use SVNAnt without trilead.jar? Anyone recommend pursuing any other options? Here is my build script. The open and end tags of the project were not copied correctly, but they exist when I execute it in my local field.

Update I was able to find trilead.jar in another svn repository of the project after some googling, and it really fixed NoClassDefFoundError. It is too bad that Trilead will not 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> 

+4
source share
3 answers

I had to remove svnkkit.jar from my svnant classpath. I did some checks using subant, and the second one used svnkit instead of javahl. this applies for ant 1.7, java6 and svnant 1.30.

 <path id="svnant.classpath"> <fileset dir="./buildBinaries/svnant-1.3.0/lib"> <include name="*.jar" /> <exclude name="svnkit.jar"/> </fileset> </path> <typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="svnant.classpath" /> 
+1
source

I had a similar problem when I configured SVNAnt. I wrote a blogpost that describes how to solve the problem:

http://www.willjohnson.me/blog/?p=128

0
source

Source: https://habr.com/ru/post/1300755/


All Articles