0

I'm working on a spring boot project and I need to build a method that can create a SVN repository to the svnserver. I found the SVNKit library so I installed the Subclipse from the marketplace in Eclipse but when I do the imports it can't resolve them.

Here is the solution I found

   2 import org.tmatesoft.svn.core.SVNURL;
   3 import org.tmatesoft.svn.core.SVNException;
   4 ...
   5 
   6     try {
   7         String tgtPath = "C:/repos/root/path";
   8         SVNURL tgtURL = SVNRepositoryFactory.createLocalRepository( new File( tgtPath ), true , false );
   9     } catch ( SVNException e ) {
  10         //handle exception
  11     }

Any idea please

1 Answer 1

1

you will have to add svnkit dependency in your pom.xml, try adding this do your projects pom.xml and run a clean, your imports should get resolved:

<dependency>
    <groupId>org.tmatesoft.svnkit</groupId>
    <artifactId>svnkit</artifactId>
    <version>1.10.1</version>
</dependency>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.