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呢?