# https://github.com/SonarSource/sonar-java/blob/master/docs/CUSTOM_RULES_101.md Looking inside the pom, you will see that both SonarQube and the Java Analyzer versions are hard-coded. This is because SonarSource's analyzers are directly embedded in the various SonarQube versions and are shipped together. For instance, SonarQube 8.9 (previous LTS) is shipped with version 6.15.1.26025 of the Java Analyzer, while the latest SonarQube 10.6 is shipped with a much more recent version 8.0.1.36337 of the Java Analyzer. These versions can not be changed.
2 、 推测每个版本应该都会有这个描述,于是我们找到里面描述 9.9LTS 的
1 2 3 4 5 6 7
# https://github.com/SonarSource/sonar-java/blob/8.5.0.37199/docs/CUSTOM_RULES_101.md Looking inside the pom, you will see that both SonarQube and the Java Analyzer versions are hard-coded. This is because SonarSource's analyzers are directly embedded in the various SonarQube versions and are shipped together. For instance, SonarQube 8.9 (previous LTS) is shipped with version 6.15.1.26025 of the Java Analyzer, while SonarQube 9.9 (LTS) is shipped with a much more recent version 7.16.0.30901 of the Java Analyzer. These versions can not be changed. <properties> <sonar.plugin.api.version>9.14.0.375</sonar.plugin.api.version> <sonarjava.version>7.16.0.30901</sonarjava.version> <!-- [...] --> </properties>
plugin 必须与 sonarqube 携带的 sonar-java 版本保持一致,否则会提示: Plugin Java Custom Rules [javacustom] is ignored because the version 7.28.0.33738 of required plugin [java] is not installed