| Name | SonarQube Runner |
|---|---|
| Latest version | 2.2.2 ( 7 June 2013 ) |
| Requires SonarQube version | 3.0 or higher ( check version compatibility ) |
| Download | http://repo1.maven.org/maven2/org/codehaus/sonar/runner/sonar-runner-dist/2.2.2/sonar-runner-dist-2.2.2.zip |
| License | GNU LGPL 3 |
| Developers | Evgeny Mandrikov, Simon Brandhof, Fabrice Bellingard |
| Issue tracker | http://jira.codehaus.org/browse/SONARPLUGINS/component/14640 |
| Sources | https://github.com/Sonarsource/sonar-runner |
The SonarQubeRunner is recommended as the default launcher to analyze a project with SonarQube.
Update the global settings (database connection, server URL) by editing the $SONARQUBE_RUNNER_HOME/conf/sonar-runner.properties file:
#----- Default SonarQube server #sonar.host.url=http://localhost:9000 #----- PostgreSQL #sonar.jdbc.url=jdbc:postgresql://localhost/sonar #----- MySQL #sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8 #----- Oracle #sonar.jdbc.url=jdbc:oracle:thin:@localhost/XE #----- Oracle #sonar.jdbc.url=jdbc:oracle:thin:@localhost/XE #----- Microsoft SQLServer #sonar.jdbc.url=jdbc:jtds:sqlserver://localhost/sonar;SelectMethod=Cursor #----- Global database settings #sonar.jdbc.username=sonar #sonar.jdbc.password=sonar |
You can check the basic installation by opening a new shell and executing the command sonar-runner -h (on Windows platform the command is sonar-runner.bat -h) . You should get a message like this:
usage: sonar-runner [options] Options: -h,--help Display help information -X,--debug Produce execution debug output -D,--define <arg> Define property |
If you need more debug information you can add the sonar.verbose property by adding the command line parameter -Dsonar.verbose=true.
You are now ready to analyze a project with the SonarQube Runner.