Sonarqube maven plugin : “The 'report' parameter is missing” when analyzing Maven Project

匿名 (未验证) 提交于 2019-12-03 01:05:01

问题:

My error log

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?

[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

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>university-service</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging>

<name>university-service</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>    

回答1:

In our situation, the root cause was on the Sonar server:

sonar.log:Caused by: java.io.IOException: No space left on device 

Freeing up disk space solved the issue.



回答2:

If you ever get this error, all you have to do is to upgrade to Java SDK 9



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!