SonarQube不是';t显示openclover覆盖率报告

SonarQube不是';t显示openclover覆盖率报告,sonarqube,clover,Sonarqube,Clover,我在设置SonarQube 6.0时遇到困难 以下是我的日志: [INFO] [08:42:14.706] Sensor org.sonar.plugins.clover.CloverSensor [INFO] [08:42:14.707] 2/2 source files have been analyzed [INFO] [08:42:14.707] Parsing /workspace/topparent/biz/target/site/clover/clover.xml [WARN] [

我在设置SonarQube 6.0时遇到困难

以下是我的日志:

[INFO] [08:42:14.706] Sensor org.sonar.plugins.clover.CloverSensor
[INFO] [08:42:14.707] 2/2 source files have been analyzed
[INFO] [08:42:14.707] Parsing /workspace/topparent/biz/target/site/clover/clover.xml
[WARN] [08:42:14.709] Resource /workspace/topparent/biz/src/main/java/biz/BizClass.java was not found.
[WARN] [08:42:14.710] Resource /workspace/topparent/biz/src/main/java/integration/FirstClass.java was not found.
[INFO] [08:42:14.711] Matched files in report : 0%
[WARN] [08:42:14.711] 2 files in clover report did not match any file in SonarQube Index : /workspace/topparent/biz/src/main/java/biz/BizClass.java, /workspace/topparent/biz/src/main/java/integration/FirstClass.java, 
[INFO] [08:42:14.711] Sensor org.sonar.plugins.clover.CloverSensor (done) | time=5ms
我不知道为什么找不到.java文件,路径是正确的。我想我没有看到报道是因为:

Matched files in report : 0%
但是为什么呢?

我当时在做:

mvn clover:setup verify clover:aggregate clover:clover sonar:sonar -sonar.host.url=...
我将其分解为两个单独的命令:

mvn clover:setup verify clover:aggregate clover:clover
然后

现在它可以工作了

Matched files in report : 100%

clover报告中的路径是相对的还是绝对的?属性设置如下
-Dsonar.clover.reportPath=target/site/clover/clover.xml
和clover.xml中的路径是绝对的是clover报告中的路径,指向文件的路径,是相对的还是绝对的?对不起,我不明白这个问题。你说的“三叶草报告”是什么意思?如果是clover.xml文件,我在前面的注释中提供了指向该文件的链接。
sonar.clover.reportPath
也可以在Maven pom中设置为属性。
Matched files in report : 100%