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
0
votes
1 answer

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 build commands.
sunnyX
  • 87
  • 2
  • 12
0
votes
1 answer

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 JaCoCo binary format version, please consider upgrading…
papanito
  • 2,349
  • 2
  • 32
  • 60
0
votes
2 answers

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 running clean sonar:sonar : [ERROR] Failed to…
saupan
  • 273
  • 3
  • 6
  • 15
0
votes
1 answer

sonar-maven-plugin different results

I'm using sonar-maven-plugin on my local machine (with SonarQube version: 5.6.6): org.codehaus.mojo sonar-maven-plugin 2.6 And I have configured sonar on…
Kiril Mytsykov
  • 659
  • 2
  • 10
  • 21
0
votes
1 answer

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 Following are my configs: Maven version:2.2.1 Java…
pooja
  • 21
  • 3
0
votes
1 answer

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
0
votes
2 answers

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.scanner.maven:sonar-maven-plugin:3.0.2:sonar …
0
votes
1 answer

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 ?
NehaK
  • 1
  • 1
0
votes
2 answers

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: Mon Feb 15 03:59:51 CST 2016 [INFO] Final…
Naimisha
  • 21
  • 6
-3
votes
1 answer

Jenkins build error after slave change

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?
1 2
3