1. Error code
/domain/xxxx.java for block at line 44. Keep only the first 100 references. WARN: Too many duplication references on file src/main/java/com/easy3w/ebs/pb/be /domain/xxxx.java for block at line 47. Keep only the first 100 references. WARN: Too many duplication references on file src/main/java/com/easy3w/ebs/pb/be /domain/PBBE0111.java for block at line 44. Keep only the first 100 references. INFO: CPD calculation finished INFO: Analysis report generated in 7791ms, dir size=44 MB INFO: Analysis reports compressed in 7968ms, zip size=14 MB INFO: ------------------------------------------------------------------------ INFO: EXECUTION FAILURE INFO: ------------------------------------------------------------------------ INFO: Total time: 16:14.080s INFO: Final Memory: 29M/656M INFO: ------------------------------------------------------------------------ ERROR: Error during SonarQube Scanner execution ERROR: Failed to upload report - 500: An error has occurred. Please contact your administrator ERROR: ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging . D:\xxx\project\xx\code\branch\dev\xxx>sonar-scanner INFO: Scanner configuration file: D:\sonar-scanner-3.2.0.1227-windows\bin\..\con f\sonar-scanner.properties INFO: Project root configuration file: D:\xxx\project\xxx\code\branch\dev\d xxx\sonar-project.properties INFO: SonarQube Scanner 3.2.0.1227 INFO: Java 1.8.0_121 Oracle Corporation (64-bit) INFO: Windows 7 6.1 amd64 INFO: User cache: C:\Users\Administrator\.sonar\cache INFO: SonarQube server 7.2.1 INFO: Default locale: "zh_CN", source code encoding: "UTF-8"
2. Solution 1
2.1 modify configuration file
You can edit my.cnf to modify it (my.ini under windows), in the [mysqld] section or the server configuration section of mysql.
max_allowed_packet = 20M
If you can't find my.cnf, you can
mysql –help | grep my.cnf
Go to find my.cnf file.
Under linux, the file is under / etc /.
2.2. Modify in mysql command line
Run in mysql command line
set global max_allowed_packet = 2*1024*1024*10
Then exit the command line, restart the mysql service, and enter again.
show VARIABLES like '%max_allowed_packet%';
Check whether the max allowed packet is edited successfully
3. Scheme II
Modify profile
sonar.projectKey=xx:xxx sonar.projectName=xxx sonar.projectVersion=0.0.1-SNAPSHOT sonar.sourceEncoding=UTF-8 sonar.sources=src/main/java/com/xxx/xxx ###Specifies the exact location of the file, reducing the size of the error file sonar.java.binaries=target/classes