https://www.cnblogs.com/fanbi/p/6504513.html
新建 sonar-project.properties
# must be unique in a given SonarQube instance sonar.projectKey=my-bill-service # this is the name displayed in the SonarQube UI sonar.projectName=bill-service sonar.projectVersion=1.0 # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. # Since SonarQube 4.2, this property is optional if sonar.modules is set. # If not set, SonarQube starts looking for source code from the directory containing # the sonar-project.properties file. sonar.sources=src sonar.java.binaries=target/classes # Encoding of the source code. Default is default system encoding #sonar.sourceEncoding=UTF-8
备注:1。sonar.java.binaries 如果不填写就会出现class 找不到
2. sonar.projectKey 相当于唯一键,每个项目应该都不一样