Default utility tool to launch a Sonar analysis without any dependency on third party tool like Maven, Ant, ...
Questions tagged [sonar-runner]
905 questions
19
votes
3 answers
Sonar: You must define the following mandatory properties for unknown not resolved
I'm trying to run SonarQube on a project in java. I configured the sonar properties file and placed it in the project directory. On running the sonar.bat there is an error that asks to define the mandatory parameters. At first I assumed my…

baconSoda
- 503
- 2
- 5
- 15
18
votes
6 answers
How to export results as a PDF report?
I am using SonarQube 5.6.3. How can I create a SonarQube analysis details report as a PDF form, an excel report, or an html formatted report?
No plugin seems to be available for this.
I was unable to generate an html file using below…

Vijay
- 1,026
- 3
- 11
- 28
16
votes
1 answer
Sonarqube 4.5.4 : MySQL deadlock
I am using sonarqube 4.5.4 with mysql database.
I got this exception when running analysis on my projects :
INFO o.d.m.sonar.runner.RunSonarVisitor - ### Error updating database. Cause:…

Master Mind
- 3,014
- 4
- 32
- 63
16
votes
1 answer
What is "projectkey" in sonar-project.properties file
What is the "projectkey" in sonar-project.properties file?
sonar.projectKey=
sonar.projectVersion=1.0
sonar.projectName=
How to decide the projectkey? I mean where can we find it for our .Net,plsql projects?
Note- I am new to these sonar and…

XtremeHunk
- 171
- 1
- 1
- 7
16
votes
4 answers
Error in jenkins during sonar analysis caused by svn blame
When i run the jenkins task i get the following error
17:12:49.738 INFO - Sensor SCM Sensor...
17:12:49.847 INFO - SCM provider for this project is: svn
17:12:49.847 INFO - Retrieve SCM blame information...
17:12:49.863 INFO - 843 files to be…

Tejus Prasad
- 6,322
- 7
- 47
- 75
15
votes
3 answers
Running SonarQube analysis scan - SonarSource build-wrapper
I'm new to running SonarQube scans and I get this error message in the log in Jenkins:
16:17:39 16:17:36.926 ERROR - The only way to get an accurate analysis of your C/C++/Objective-C project is by using the SonarSource build-wrapper. If for any…

DoruF
- 193
- 1
- 2
- 9
14
votes
2 answers
sonarqube typescript plugin: "You must install a plugin that supports the language"
I'm trying to setup SonarQube to analyse my TypeScript project using this plugin: https://github.com/Pablissimo/SonarTsPlugin
However, I'm encountering an error like:
> C:\sonarqube\sonar-runner-2.4\bin\sonar-runner.bat
...
INFO:…

laffoyb
- 1,540
- 3
- 22
- 35
14
votes
1 answer
How to login into SonarQube in my local box
I installed the SonarQube 3.7 in my localbox for Maven Projects (Maven 3), I can able to run the sonar and see the metrics. But i could not able to Log In as administrator in localhost:9000, what are the default login credentials for SonarQube after…

user2723039
- 221
- 2
- 7
- 16
13
votes
3 answers
launch a sonar analysis for the code of a pullRequest with Jenkinsfile and maven
Currently on my project, each pull-Request on the organization-repository are build automatically by Jenkins, as specified in a jenkinsfile.
When the build end, a message in send by Jenkins to github with the status of the build of this project.
I…

sab
- 4,352
- 7
- 36
- 60
13
votes
1 answer
importing javascript xml junit tests to SONAR using jstestdriver fails
What I am doing?
I am currently working on setting up Continuous integration / delivery pipeline for front end applications. We are planning to use SonarQube as code quality tool and want to import junit test results/code coverage in SONAR for…

Sunil
- 191
- 2
- 6
12
votes
7 answers
Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin: 3.2:sonar
Can anyone help me in getting solution for the below error.
Below are the version of the components to configure
SonarQube 5.1.2
Soanr-Runner 2.4
Java 1.7 [ I have to use 1.7 only since my code supports only 1.7]
mavn…

Mahesh G
- 1,226
- 4
- 30
- 57
12
votes
3 answers
Multi module project analysis with SonarQube
SonarQube Server 5.1.2, Sonar-Runner 2.4
As provide in Multi-moduleProject i have created a project structure as
Accounts
|
->invoice
|
->src
->receipt
|
…

Jeevanantham
- 984
- 3
- 19
- 48
12
votes
7 answers
TeamCity dotCover report path for Sonar
I'm trying to integrate the sonar analysis into by TeamCity build process. I have a NUnit build step which runs my unit tests and then runs dotCover for the coverage.
My next step is the sonar-runner. The configuration that currently exists is;…

Dipesh
- 1,263
- 1
- 11
- 12
11
votes
2 answers
Unsupported major.minor version Exception for sonar-scanner
I am trying to analyze my source code using SonarQube. I am trying to use sonar-scanner as my tool to run analysis from command line. I followed the guidelines presented in this documentation article:…

Amrish
- 679
- 1
- 8
- 20
11
votes
1 answer
Running Sonar from command line without a SonarQube server
I need to perform some static analysis of java classes from command line To extract basic metrics and I was thinking I could use sonar-cli, but that required a fully working SonarQube.
How can I perform those inspections?

Edmondo
- 19,559
- 13
- 62
- 115