2017-10-06 4 views
1

openclover 4.2.0과 SonarQube 6.0을 함께 사용하는 데 어려움이 있습니다.SonarQube에서 오픈 클로버 적용 범위 보고서가 표시되지 않습니다.

는 여기에 내가 로그에있는 내용은 다음과 같습니다 제가 된 .java 파일을 찾을 수없는 이유 경로가 올바른지 모르는

[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 

. 나는 이것 때문에 보험 보상 보고서를 볼 수 없다고 생각합니다.

Matched files in report : 0% 

왜?

mvn clover:setup verify clover:aggregate clover:clover sonar:sonar -sonar.host.url=... 

내가 2 개 별도의 명령으로이 부러 :

mvn clover:setup verify clover:aggregate clover:clover 

다음

mvn sonar:sonar -sonar.host.url=... 

을 그리고 지금은 작동

+0

클로버 보고서의 경로가 상대적인 또는 절대적입니까? –

+0

속성처럼 설정이 '-Dsonar.clover.reportPath = 타겟/사이트/클로버/clover.xml' 및 clover.xml의 경로가 절대 https://pastebin.com/5A4mGdwh –

+0

패스가 있는가 _ 클로즈업 리포트, 상대적인 파일 또는 절대적인 파일? –

답변

2

나는하고 있었다.

Matched files in report : 100%