sonar Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar

Posted 笨鸟先飞

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sonar Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar相关的知识,希望对你有一定的参考价值。

背景:

今天在项目根目录执行maven sonar:sonar ,报错信息如下,然后就各种的搜,折腾了多半天天也没找出解决办法,最后打算放弃时,看到一遍文章说是mysql  max_allowed_packet  的问题

Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar (default-cli) on project air_order_mis_new_git: Failed to upload report - 500: An error has occurred. Please contact your administrator -> [Help 1]

 

 

2、解决方法:

mysql客户端命令行执行

set global max_allowed_packet = 100*1024*1024;

show VARIABLES like \'%max_allowed_packet%’; 查看 max_allowed_packet收更新成功

最后问题解决

3、max_allowed_packet是干嘛的呢?

原来是控制server接受数据包的大小,有时大量的插入数据会因max_allowed_packet参数限制,而导致写入失败

当时就往maven 配置 sonar配置上想了,怎么就没想到mysql呢?

 

以上是关于sonar Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar的主要内容,如果未能解决你的问题,请参考以下文章

启动Sonar报错,ERROR: [1] bootstrap checks failed [1]: system call filters failed to install

Android Studio报错:Failed to complete Gradle execution.

IDEA报错Failed to execute goal

vscode Git:failed to execute git

--- Error: failed to execute '.ARMCCinArmAsm'

mongodb安装之后使用robo3t连接出现 Failed to load list of database Failed to execute "listdatabases"