更新时间:2023-01-30 16:41:55
对于 sonar-maven-plugin 它的工作原理是一样的.只需将这两个属性添加到 pom 文件中即可:
For the sonar-maven-plugin it works the same. Just add these two properties to the pom file:
<project xmlns="...>
...
<properties>
<sonar.analysis.mode>preview</sonar.analysis.mode>
<sonar.issuesReport.html.enable>true</sonar.issuesReport.html.enable>
</properties>
...
</project>
结果将在目标/声纳文件夹中
results will be in the target/sonar folder