Sonarqube maven 插件:“'report' 参数丢失"在分析 Maven 项目时 [英] Sonarqube maven plugin : "The 'report' parameter is missing" when analyzing Maven Project
问题描述
我正在使用 sonarqube 6.7.1 来分析我的 maven 项目 (maven 3.5.2) &声纳行家 3.4.0.905.我不断收到错误消息缺少'report'参数".我做了几个小时的研究,但看起来几乎没有人遇到过这个错误.有人遇到过同样的问题吗?
I'm using sonarqube 6.7.1 to analyze my maven project (maven 3.5.2) & sonar-maven 3.4.0.905. I keep getting the error "The 'report' parameter is missing". I did researches for hours but looks like almost no one has had this error. Did anyone have this same issue?
[错误] 无法在 project university-service 上执行目标 org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar (default-cli):缺少报告"参数
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar (default-cli) on project university-service: The 'report' parameter is missing
这是我的 POM.xml 文件:
Here is my POM.xml file:
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd"><modelVersion>4.0.0</modelVersion>
<groupId>com.hoang.universityservice</groupId><artifactId>大学服务</artifactId><版本>0.0.1-SNAPSHOT</版本><包装>罐子</包装>
<name>大学服务</name><url>http://maven.apache.org</url>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.2.RELEASE</version>
</parent>
<properties>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
推荐答案
如果您遇到此错误,您只需升级到 Java SDK 9
If you ever get this error, all you have to do is to upgrade to Java SDK 9
这篇关于Sonarqube maven 插件:“'report' 参数丢失"在分析 Maven 项目时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!