我有一个 servers
在我的计算机上使用 http-auth-types = Negotiate;ntlm;basic
以下带有svnkit 1.10.2的java程序应连接到存储库:
public static void main(String[] args) throws SVNException
{
SVNClientManager clientManager = SVNClientManager.newInstance();
ISVNAuthenticationManager manager = SVNWCUtil.createDefaultAuthenticationManager();
clientManager.setAuthenticationManager(manager);
SVNURL repositoryURL = SVNURL.parseURIEncoded(args[0]);
SVNRepository repository = clientManager.createRepository(repositoryURL, true);
Collection<SVNDirEntry> contentOfFolder = repository.getDir("", SVNRevision.HEAD.getNumber(),
null, SVNDirEntry.DIRENT_ALL, (Collection<SVNDirEntry>) null);
System.out.println(contentOfFolder);
}
不幸的是,我
org.tmatesoft.svn.core.SVNAuthenticationException: svn: E170001: Authentication required for ...
我做错什么了?我需要告诉svnkit使用ntlm吗?
暂无答案!
目前还没有任何答案,快来回答吧!