Maven 验证 Sonar 在 svn : E175002 上失败

标签 maven ssl svn sonarqube sonarqube-scan

新安装的 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/

相关文章:

maven - 创建 SWT Maven 项目,而无需提供特定于平台的 SWT 二进制文件

ssl - iOS 8 在我的应用程序中断开了 SSL 连接 - CFNetwork SSLHandshake 失败 (-9806)

java - Maven 不能在 jenkins 上运行(但它可以通过 eclipse 和命令行运行)

apache - 应用 SSL 证书后子域文件夹重定向不起作用

java - 从 JAVA 应用服务器捕获 https 流量

eclipse - 在 Eclipse Helios 中使用 subversive 查看 SVN svn+ssh 存储库

svn - 如何在Redmine中将Subversion主干和分支链接到项目?

windows - 当 PC 程序员更新 Mac 程序员最近提交的文件时,SVN diff 将所有代码行标记为新代码

java - Maven 发布插件 jar-with-dependencies

maven - Jenkins 管道 - 使用执行 Maven 发布按钮