如何使用SonarQube-6.7.5生成HTML报告 [英] How to generate HTML report with SonarQube-6.7.5

查看:1568
本文介绍了如何使用SonarQube-6.7.5生成HTML报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用apache-maven-3.5.4和Java 1.8进行Spring4.0项目,并且想使用SonarQube进行代码覆盖和报告.我正在为此使用jacoco-maven-plugin 0.7.8版本插件.我可以在浏览器中查看详细信息.但是,当我尝试将报告生成为HTML时,看不到生成的报告.我在Google进行了很多研究,并遵循以下内容

I am working on Spring4.0 Project with apache-maven-3.5.4 and Java 1.8 and would like to use SonarQube for code coverage and reports. I am using jacoco-maven-plugin 0.7.8 version plugin for that. I am able to see the details in the browser. But when I try to generate the report to HTML, I am not seeing the reports generated. I did a lot of research in Google and I followed the below

 mvn sonar:sonar -Dsonar.issuesreport.html.enable=true 

,我也在POM中添加了该条目.但是不会生成报告.请帮助我解决此问题.下面是我在POM文件中的配置.

and i added the entry in POM as well. But the reports are not generated. Kindly help me in getting this resolved. Below is my configuration in POM file.

 <!-- Sonar -->
 <sonar.jacoco.itReportPath>${project.basedir}/../target/jacoco- 
   it.exec</sonar.jacoco.itReportPath>
 <sonar.groovy.binaries>target/classes</sonar.groovy.binaries>

 <plugin>
        <groupId>org.sonarsource.scanner.maven</groupId>
        <artifactId>sonar-maven-plugin</artifactId>
        <version>3.4.0.905</version>
 </plugin>

推荐答案

问题报告插件为

Issue report plugin was deprecated, so this option will not work with recent versions of SonarQube. SonarQube is able to display coverage and reports via its UI, so this functionality was dropped.

这篇关于如何使用SonarQube-6.7.5生成HTML报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆