有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java使用HTTPS通过SVNKit连接到Subversion存储库

如何使用HTTPS通过SVNKit连接到Subversion存储库? 我使用了之前使用http连接的方法:

  DAVRepositoryFactory.setup();
repository = SVNRepositoryFactory.create(SVNURL.parseURIDecoded(url));
ISVNAuthenticationManager authManager = SVNWCUtil.createDefaultAuthenticationManager(name, password);
repository.setAuthenticationManager(authManager);
repositoryRoot = repository.getRepositoryRoot(false).toString();

我明白了

org.tmatesoft.svn.core.SVNAuthenticationException: svn: Authentication required for '<https://daisy.interorigins.com:443> MY repository'

共 (1) 个答案

  1. # 1 楼答案

    我的解决方案:

    repository = SVNRepositoryFactory.create(SVNURL.parseURIDecoded(url));
    repository = SVNRepositoryFactory.create(SVNURL.parseURI**En**coded(url));
    try SVNURL.parseURIEncoded(url)