新安装的 SonarQube 6。使用
重新 checkout SVN 存储库sudo svn https://mySvnServer --username myUsername
永久接受 mySvnServer
的证书。 SonarQube 服务器已启动,我准备根据 documentation 进行 maven 验证.
sudo mvn clean verify sonar:sonar
几乎在该过程的 99% 之后,它失败并出现以下错误,
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.
0.2:sonar (default-cli) on project com.foo.bar: Error when executing blame for fil
e src/main/java/com/foo/bar/MyJavaClass.java: svn: E175002: Connection has been sh
utdown: javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name
[ERROR] svn: E175002: OPTIONS request failed on '/svn/full-SVN-Path-To-My-Project/
MyJavaClass.java'
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch
.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solut
ions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVE
N/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :clear.ng
尝试阅读发布的许多相关问题,并设法对问题有所了解,但对在哪里以及进行哪些更改可以解决相同的问题一无所知。
最佳答案
升级您的 VisualSVN 服务器实例。不再支持 VisualSVN Server 2.7,并且不再接收安全或错误修复。当前的 VisualSVN Server 发布版本是 3.5.x。
要立即修复,请应用最新的补丁更新:VisualSVN Server 2.7.14 .
补丁更新是同一发行版本中的次要更新。应用小补丁更新总是轻松且快速的;补丁更新仅包含错误修复,不包含新功能。在 2.7.14 版本中,您应该不会再遇到此类错误,因为我们在 version 2.7.9 中应用了解决方法:
Disable SNI (Server Name Indication) extension to workaround non-compliant Subversion clients that incorrectly handle SSL handshake alerts.
问题是不兼容的 Subversion 客户端可能无法正确处理 SSL 握手警报。在您的特定情况下,我猜想在证书、URL 和服务器设置中使用了不同的服务器名称,因此存在客户端无法正确处理的握手警告。此类警报必须被视为纯粹的警告,但较旧的客户端和一些基于 Java 的客户端将它们视为严重错误,从而导致上述错误之一。
顺便说一句,最好在您的服务器上安装有效且正确签名的证书。
关于Maven 验证 Sonar 在 svn : E175002 上失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39289513/