40 questions
0
votes
0
answers
73
views
sonar failed: An API incompatibility was encountered while executing org.sonarsource.scanner.maven:sonar-maven-plugin
I used sonar-maven-plugin 3.11.0.3922 on a java program which was compiled with jdk1.8.0_391_x64, but got the "sonar failed: An API incompatibility was encountered while executing org.sonarsource....
0
votes
1
answer
1k
views
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 org....
0
votes
1
answer
3k
views
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.
&...
8
votes
4
answers
21k
views
Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar error
My Java project written and compiled in 1.8 through Maven. I am getting the following error when I try to analyze my code using sonar-maven-plugin Ver. 3.9.1.2184 for SonarQube 9.2.4.
The following ...
3
votes
0
answers
1k
views
How can I configure sonar-maven-plugin to accept Java 9 module-info.java files?
How can I configure sonar-maven-plugin in my parent pom to accept (or ignore) Java 9 module-info.java files?
After adding module-info.java files to my Maven multi module project our mvn sonar:sonar ...
0
votes
1
answer
2k
views
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:
<sonar-maven-plugin.version>2.0</sonar-maven-...
1
vote
0
answers
349
views
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
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>...
0
votes
1
answer
982
views
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 ...
2
votes
1
answer
6k
views
surefire plugin output: "WARNING: An illegal reflective access operation has occurred"
I have the following plugins configured in my maven build:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sonar-maven-plugin</...
0
votes
1
answer
1k
views
Can Sonar Scan be triggered as part of regular maven Build command like " mvn build"?
Im looking to see any maven configuration which will enable me to run Sonar Scan on my code for every maven build. I dont want to use a separate goal but somehow enforce it as part of users regular ...
2
votes
2
answers
4k
views
SonarQube define "Ignore Issues on Multiple Criteria" in maven build
Is it supported by sonar-maven-plugin to set the "Ignore Issues on Multiple Criteria" to Narrow the focus as -Dsonar.issue.ignore.multicriteria for the sonar-maven-plugin run command?
Any working ...
0
votes
1
answer
684
views
sonar-maven-plugin fails with GC overhead limit exceeded
We scan projects with the sonar-maven-plugin and struggle over this error in the respective Jenkins stage
...
14:46:19 [INFO] Sensor JaCoCoSensor
14:46:19 [WARNING] You are not using the latest ...
2
votes
2
answers
10k
views
SonarQube: Bytecode of dependencies missing despite Maven usage
I use the sonar-maven-plugin version 3.4.0.905 to SonarQube-scan a flat hierarchy, multi-module Maven project.
I have noticed a warning in the log of one of the 14 modules I scan.
[WARNING] Bytecode ...
4
votes
1
answer
3k
views
Map in a serializable class is shown as Sonar violation when explicitly initialized with null
I am using SonarQube 6.7.3 with Sonar java plugin 5.3
I have a Serializable java class with a map as an instance variable.
1. Map is showing S1948 rule violation when initialized with null explicitly....
0
votes
2
answers
3k
views
SonarQube maven compatibility (Unsupported major.minor version 52.0)
I have a multi-module maven project with the following versions of softwares:
Maven : 3.2.1
JDK : 1.6
sonar-maven-plugin : 3.4.0
SonarQube server : 6.7.0 (Build 33306)
I get the following error on ...
1
vote
1
answer
332
views
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["...
-3
votes
1
answer
180
views
Jenkins build error after slave change [closed]
The build for this job is getting failed because of the following error.
I'm not sure what this is about. Can anyone help me resolve this?
0
votes
1
answer
442
views
sonar-maven-plugin different results
I'm using sonar-maven-plugin on my local machine (with SonarQube version: 5.6.6):
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sonar-maven-plugin</...
0
votes
1
answer
231
views
unable to find mojo sonar (or one of its component) in the plugin org.sonarsource.scanner.maven:sonar-maven-plugin
I am implementing sonar in my existing maven project.I am getting this error :
unable to find mojo sonar (or one of its component) in the plugin org.sonarsource.scanner.maven:sonar-maven-plugin
...
5
votes
2
answers
2k
views
Automatically associate new Sonar project with custom quality profile and quality gate
Our use case for Sonar creates new Sonar projects for each branch of our repository. How do we automatically associate the new branch project with a (non-default) Quality Profile and Quality Gate?
We'...
1
vote
1
answer
988
views
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 ...
19
votes
3
answers
20k
views
Sonar maven plugin: same project key for all modules does not work?
I am using sonar-maven-plugin 3.2 and maven 3.3.9. In the parent POM, I have the sonar.projectKey maven property defined. The value is in effect, I can see it from the printout of sonar. But the mvn ...
3
votes
1
answer
1k
views
Sonar failed with an API incompatibility for Absent Code attribute
One of my fellow developers created a new application the other day and now I can't get a good Sonar compile. I've tried a number of documented workarounds/solutions to this sort of Absent Code error, ...
1
vote
1
answer
930
views
sonar-maven-plugin 3.3.0.603 changelog [closed]
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
0
votes
1
answer
274
views
SonarQube analysis java and net together
I have a problem.
I need to analyze these two languages along with sonarQube 5.6, any idea how of to do it?
I have install maven and MSBuild SonarRunner but I never made them run together
1
vote
0
answers
2k
views
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 ...
3
votes
1
answer
6k
views
what version of java is compatible sonar-maven-plugin
We are working on a existing project which should be compiled only in Java 6 version.We have sonar 4.5.7 to analyze the code quality.Now my question is the sonar-maven-plugin compatibility version ...
2
votes
2
answers
6k
views
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 ...
0
votes
2
answers
1k
views
Sonar Maven plugin is failing because of a newer maven assembler plugin, how can I get the new plugin to pass properties correctly?
Had to update our maven assembler version to 1.1.8 from 1.1.6. It's the only change that happened and now Sonar Maven Plugin is throwing this exception:
[ERROR] Failed to execute goal org.sonarsource....
5
votes
2
answers
3k
views
Sonar reports different line and branch coverage than Idea, Eclipse, Maven and Jenkins
I have all those tools reporting the same coverage with JaCoCo: 69% line coverage and 23% branch coverage.
Note: Screenshots had been taken over several days so they have slightly different values, ...
1
vote
1
answer
1k
views
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 ...
4
votes
1
answer
3k
views
${session.executionRootDirectory} is not recognized by sonar-maven-plugin
I have several levels of nested Maven projects, where every module can participate in the global integration tests. To have a global, multi module coverage, I've configured jacoco to use and share the ...
0
votes
1
answer
48
views
Run sonarsouce report plugin through maven
How can i run sonarsource report plugin through maven command for generating sonar analysis reports?
I know the way to do it through sonar-runner, but can we do it directly through mvn command ?
0
votes
2
answers
1k
views
Sonar build error on Jenkins
My Jenkins build is failing with this below error.
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3:50.002s
[INFO] Finished at:...
5
votes
0
answers
2k
views
Maven Build Issues : Reading jacoco.exec file
We have several different faults with our jacoco.exec file, see the Error types below.
Can you please help us with this problem, we have at least 25% build failures due to Jacoco.
Error Type 1:
09:...
1
vote
0
answers
114
views
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 ...
6
votes
1
answer
5k
views
Sonar maven analysis - class not found
I'm trying to setup SonarQube (v.4.5.6) with maven support. I believe my configuration is correct but I can't get SonarQube analysis to run without errors.
My project's dependencies:
<...
2
votes
1
answer
1k
views
sonar 5.2 NullPointerException
My environment is the following:
http://localhost:9000/sonar/api/server/version :: 5.2
java,sonar-java-plugin-3.7.jar|07dba2b9cad37584d82522414b2dccd0
scmgit,sonar-scm-git-plugin-1.0.jar|...
1
vote
4
answers
10k
views
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....
6
votes
6
answers
23k
views
sonar maven plugin build error, SonarQube version: null
My jenkins builds just started to fail with this message:
[INFO] --- sonar-maven-plugin:2.7:sonar (default-cli) @ cividas-core-web ---
[INFO] artifact com.ontimize:ontimize-core: checking for updates ...