Questions tagged [sonar-maven-plugin]

SonarQube™ is an open source platform for Continuous Inspection of code quality. The Maven Plugin triggers the code analyzers.

From SonarQube / Documentation / Documentation / … / Analyzing with Maven

Analyzing a Maven project consists of running a Maven goal: sonar:sonar in the directory where the pom.xml file sits.

The Maven Plugin triggers the code analyzers.

40 questions
2
votes
2 answers

sonar-maven-plugin: Can not set sonar.sources src/main/resources

I have a problem with maven-sonar settings. I need to include all my project files at src/main/java and src/main/resources so that SonarQube will show results of all my files but exclude some files in src/main/resources/static/file. For test path it…
David Vincent
  • 634
  • 1
  • 8
  • 33
2
votes
1 answer

sonar 5.2 NullPointerException

My environment is the following: http://localhost:9000/sonar/api/server/version ::…
railnet
  • 21
  • 4
1
vote
0 answers

Runtime error running coverage with sonarq and jdk11

I have an error running the coverage with sonarq. i'm using jdk11, jacoco 0.8.6 org.jacoco jacoco-maven-plugin 0.8.6
1
vote
1 answer

sonar-maven-plugin getting "out of range of int" error

We're getting an odd error on one of our new github projects when we attempt to run a sonar analysis. We get the following error message and it appears to be because org.kohsuke.github.GHCommitStatus["id"] gets a "Numeric value (4275691320) out of…
mstod370
  • 13
  • 2
1
vote
1 answer

Sonar-Maven-Plugin: The folder does not exist

we're having trouble with building a project in Jenkins. First of all some details on what we're using: Jenkins 1.596.1 SonarQube 4.4 Java SE Development Kit, Update 92 Maven 3.3.3 sonar-maven-plugin 3.2 We're getting the following error: [ERROR]…
RobCo
  • 61
  • 1
  • 4
1
vote
1 answer

sonar-maven-plugin 3.3.0.603 changelog

Is these any change to find changelog/release note for 3.3.0.60 34? https://github.com/SonarSource/sonar-scanner-maven has just a broken link to http://sonarsource.github.io/sonar-maven
kingoleg
  • 1,305
  • 15
  • 24
1
vote
0 answers

Sonar-maven-plugin:3.1.1:sonar failed: An API incompatibility was encountered while executing org.sonarsource.scanner.maven

I already install Java 1.8.0_111 (newest update), download apache-maven-3.3.9 and SonarQube-6.1 and put sonar-web-plugin-2.5.0.476.jar into sonarQube extension plugin. I have a problem when running maven-sonar-scanner and I get this error…
David Vincent
  • 634
  • 1
  • 8
  • 33
1
vote
1 answer

How can I integrate maven project with SonarQube5.4?

I want to integrate my maven java application with SonarQube5.4. Using maven3.3.3 and MySQL5.7.12 Already SonarQube installed successfully and its running. If i go to my project path in command prompt and run command mvn sonar:sonar, i'm getting the…
Gnik
  • 7,120
  • 20
  • 79
  • 129
1
vote
0 answers

Sonarqube merge 2 components

I have two SonarQube components that existed under the same directory. Rather than running analysis of both sub-directories, I'd like to view only the parent. I would prefer not to delete the issues and triage in SonarQube. Is there a way to merge…
CNofy
  • 41
  • 4
1
vote
4 answers

Sonar Maven not working (org.codehaus.mojo:sonar-maven-plugin:2.7:sonar (default-cli)

I see I am not the only one having this problem from 14 hours ago. At my office, other projects are failing too but the message shown make reference to sonar-maven-plugin:2.6:sonar org.apache.maven.lifecycle.LifecycleExecutionException: Failed to…
user4177096
0
votes
1 answer

Getting API compatibility error when try to analyze a java application (Java 8)with Sonarqube 9.9

this is the error i get Failed to execute goal [32morg.sonarsource.scanner.maven:sonar-maven-plugin:3.6.0.1398:sonar[m [1m(default-cli)[m on project[m: [1;31mExecution default-cli of goal…
0
votes
0 answers

JaCoCo coverage reports in multi module project with surefire

I have a project with multiple modules. module1 module2 module3 testModule: src/main/java: com.example.test some legacy I cannot get rid of src/test/java: com.example.test: actual test classes pom.xml (in testModule) pom.xml(root…
0
votes
1 answer

sonar-maven-plugin fails to recognise jdk version from "maven.compiler.release"

Behaviour of sonar-maven-plugin varies when maven-compiler-plugin is/isn't defined. I spent some time to find out the proper setting. Create a simple Java maven project and keep the pom.xml simple.
Franz Wong
  • 1,024
  • 1
  • 10
  • 32
0
votes
1 answer

How to get SonarQube code coverage for scala project

I am running the goal from Teamcity for Scala project as org.jacoco:jacoco-maven-plugin:prepare-agent -U sonar:sonar My pom.xml file looks like: 2.0
Priya
  • 173
  • 6
  • 18
0
votes
1 answer

How to disable SonarScanner post job action for the Sonar Bitbucket Cloud plugin

After completion of the SonarScanner analysis, there's some post-job running as below: [DEBUG] 14:56:53.076 Post-jobs : Sonar Plug-in for Bitbucket Cloud [INFO] 14:56:53.076 Executing post-job 'Sonar Plug-in for Bitbucket Cloud' This fails when I…
swaroop
  • 43
  • 10