sonar-scanner扫描代码出错 SonarQube svn: E170001
问题报错:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | Caused by : org.tmatesoft.svn.core.SVNAuthenticationException: svn: E170001: Authentication required for '<svn://192.168.1.95:3690> 6f205048-4e01-0010-937d-7723a8b4cf5f' at org.tmatesoft.svn.core. internal .wc.SVNErrorManager.authenticationFailed(SVNErrorManager.java:47) at org.tmatesoft.svn.core. internal .wc.SVNErrorManager.authenticationFailed(SVNErrorManager.java:41) at org.tmatesoft.svn.core. internal .wc.DefaultSVNAuthenticationManager.getFirstAuthentication(DefaultSVNAuthenticationManager.java:203) at org.tmatesoft.svn.core. internal .io.svn.sasl.SVNSaslAuthenticator.createSaslClient(SVNSaslAuthenticator.java:312) at org.tmatesoft.svn.core. internal .io.svn.sasl.SVNSaslAuthenticator.authenticate(SVNSaslAuthenticator.java:92) at org.tmatesoft.svn.core. internal .io.svn.SVNConnection.authenticate(SVNConnection.java:198) at org.tmatesoft.svn.core. internal .io.svn.SVNRepositoryImpl.authenticate(SVNRepositoryImpl.java:1296) at org.tmatesoft.svn.core. internal .io.svn.SVNRepositoryImpl.openConnection(SVNRepositoryImpl.java:1274) at org.tmatesoft.svn.core. internal .io.svn.SVNRepositoryImpl.hasCapability(SVNRepositoryImpl.java:1581) at org.tmatesoft.svn.core.io.SVNRepository.assertServerIsMergeInfoCapable(SVNRepository.java:787) at org.tmatesoft.svn.core.io.SVNRepository.getFileRevisions(SVNRepository.java:756) at org.tmatesoft.svn.core. internal .wc2.remote.SvnRemoteAnnotate.run(SvnRemoteAnnotate.java:111) at org.tmatesoft.svn.core. internal .wc2.remote.SvnRemoteAnnotate.run(SvnRemoteAnnotate.java:35) at org.tmatesoft.svn.core. internal .wc2.SvnOperationRunner.run(SvnOperationRunner.java:21) at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1235) at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294) at org.tmatesoft.svn.core.wc.SVNLogClient.doAnnotate(SVNLogClient.java:295) at org.sonar.plugins.scm.svn.SvnBlameCommand.blame(SvnBlameCommand.java:84) ... 30 more |
原因分析:
关键字段:svn: E170001: Authentication required for '<svn://192.168.1.95:3690> 6f205048-4e01-0010-937d-7723a8b4cf5f'
问题原因:
sonar-runner发现了.svn文件,于是启动了自己的SVN插件,去访问SVN,但是又没有对应SVN路径的授权所以就报错。
问题解决:
1.打开sonarqube的控制台,使用admin登录后 ,在配置->SCM->菜单中,将Disabled the SCM Sensor设置为true,
2.在svn页面,设置svn的用户名和密码。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步