sonar stepping on the pit (1)

Using sonar-scanner to scan a project, the result is too large, and the upload to the database fails, indicating that the maximum allowable packet when inserting data into the database : max_allowed_packet

Solution:

Modify (or set) the max_allow ed_packet value in my.cnf of mysql, or execute the command directly:

set global max_allowed_packet = 100*1024*1024;

然后重启sonar

另外,同一个项目扫描过一遍后,修改sonar-project.properities的扫描目录再次扫描会失败

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325711748&siteId=291194637