Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Sonar
NameSonarQube Runner
Latest version2.2 ( 18 April 3 ( 23 July 2013 )
Requires Sonar Requires SonarQube version3.0 or higher ( check version compatibility )
Downloadhttp://repo1.maven.org/maven2/org/codehaus/sonar/runner/sonar-runner-dist/2.23/sonar-runner-dist-2.23.zip
LicenseGNU LGPL 3
DevelopersEvgeny Mandrikov, Simon Brandhof, Fabrice Bellingard
Issue trackerhttp://jira.codehaus.org/browse/SONARPLUGINS/component/14640
Sourceshttps://github.com/Sonarsource/sonar-runner

Features

The Sonar Runner SonarQube Runner is recommended as the default launcher to analyze a project with SonarSonarQube.

Prerequisites

  • Java 6 or higher
  • SonarQube is already installed

Installation

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

    Code Block
    languagebash
    #----- Default SonarSonarQube server
    #sonar.host.url=http://localhost:9000
    
    #----- PostgreSQL
    #sonar.jdbc.url=jdbc:postgresql://localhost/sonar
    #sonar.jdbc.driver=org.postgresql.Driver
    
    #----- MySQL
    #sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&amp;characterEncoding=utf8
    #sonar.jdbc.driver=com.mysql.jdbc.Driver
    
    #----- Oracle
    #sonar.jdbc.url=jdbc:oracle:thin:@localhost/XE
    
    #----- Microsoft SQLServer
    #sonar.jdbc.driverurl=oracle.jdbc.driver.OracleDriverjdbc:jtds:sqlserver://localhost/sonar;SelectMethod=Cursor
    
    #----- Global database settings
    #sonar.jdbc.username=sonar
    #sonar.jdbc.password=sonar
    

     

     

  3. Create a new SONAR_RUNNER_HOME environment variable set to $SONAR_RUNNER_HOMEto <install_directory>.
     
  4. Add the $SONAR<install_RUNNER_HOMEdirectory>/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 Windows platform the command is 'sonar-runner.bat -h') . You should get a message like this:

    Code Block
    usage: sonar-runner [options]
     
    Options:
     -D,--define <arg>     Define property
     -e,--errors           Produce execution error messages
     -h,--help             Display help information
     -Xv,--debugversion          Display version Produceinformation
    execution debug output
     -DX,--definedebug <arg>     Define property
         Produce execution debug output

If you need more debug information you can add the property sonar.verbose property by adding the command line parameter -Dsonar.verbose=true.

You are now ready to analyze a project with the Sonar Runner.

Change Log

JIRA Issues
anonymoustrue
titleRelease 2.1
height150
renderModestatic
width900
columnstype;key;summary;priority
urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+SONARPLUGINS+AND+fixVersion+%3D+%22SONAR-RUNNER-2.1%22+AND+status+%3D+Closed+ORDER+BY+priority+DESC&tempMax=1000

 

JIRA Issues
anonymoustrue
titleRelease 2.0
height150
renderModestatic
width900
columnstype;key;summary;priority
urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+SONARPLUGINS+AND+fixVersion+%3D+%22SONAR-RUNNER-2.0%22+AND+status+%3D+Closed+ORDER+BY+priority+DESC&tempMax=1000

 

JIRA Issues
anonymoustrue
titleRelease 1.4
height150
renderModestatic
width900
columnstype;key;summary;priority
urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+SONARPLUGINS+AND+fixVersion+%3D+%22SONAR-RUNNER-1.4%22+AND+status+%3D+Closed+ORDER+BY+priority+DESC&tempMax=1000

 

JIRA Issues
anonymoustrue
titleRelease 1.3
height150
renderModestatic
width900
columnstype;key;summary;priority
urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+SONARPLUGINS+AND+fixVersion+%3D+%22SONAR-RUNNER-1.3%22+AND+status+%3D+Closed+ORDER+BY+priority+DESC&tempMax=1000

 

JIRA Issues
anonymoustrue
titleRelease 1.2
height150
renderModestatic
width900
columnstype;key;summary;priority
urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+SONARPLUGINS+AND+fixVersion+%3D+%22SONAR-RUNNER-1.2%22+AND+status+%3D+Closed+ORDER+BY+priority+DESC&tempMax=1000

 

JIRA Issues
anonymoustrue
titleRelease 1.1
height150
renderModestatic
width900
columnstype;key;summary;priority
urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=17194&pid=11911&sorter/field=issuekey&sorter/order=DESC&tempMax=1000

 

JIRA Issues
anonymoustrue
titleRelease 1.0
height70
renderModestatic
width900
columnstype;key;summary;priority
urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=17130&pid=11911&sorter/field=issuekey&sorter/order=DESC&tempMax=1000

SonarQube Runner.