Skip to end of metadata
Go to start of metadata
NameSonarQube Scanner
Latest version2.4 ( 28 Apr 2014 )
Requires SonarQube version4.5.1 or higher
Downloadhttp://repo1.maven.org/maven2/org/codehaus/sonar/runner/sonar-runner-dist/2.4/sonar-runner-dist-2.4.zip
LicenseGNU LGPL 3
DevelopersJulien Henry
Issue trackerhttp://jira.sonarsource.com/browse/SONARUNNER
Sourceshttps://github.com/Sonarsource/sonar-runner

Features

The SonarQube Scanner is recommended as the default launcher to analyze a project with SonarQube.

Compatibility

SonarQube Scanner version 2.4 is compatible with SonarQube platform version 4.5.1 and higher.

Prerequisites

  • SonarQube is already installed
  • Use at least the minimal version of Java supported by your SonarQube server

Installation

  1. Expand the downloaded file into the directory of your choice. We'll refer to it as <install_directory> in the next steps.
     
  2. Update the global settings (server URL) by editing <install_directory>/conf/sonar-runner.properties:

    #----- Default SonarQube server
    #sonar.host.url=http://localhost:9000
    

     

     

  3. Create a new SONAR_RUNNER_HOME environment variable set to <install_directory>.
     
  4. Add the <install_directory>/bin directory to your path.
     
  5. 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:
     -D,--define <arg>     Define property
     -e,--errors           Produce execution error messages
     -h,--help             Display help information
     -v,--version          Display version information
     -X,--debug            Produce execution debug output

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 Scanner.

  • No labels