Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
NameSonar Runner
Latest version2.01 ( 20 September 2012 18 March 2013 )
Requires Sonar version2.11 or higher ( check version compatibility )
Downloadhttp://repositoryrepo1.codehausmaven.org/maven2/org/codehaus/sonar-plugins/runner/sonar-runner-dist/2.01/sonar-runner-dist-2.01.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/tree/2.01

Features

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

Prerequisites

  • Java 1.5 6 or higher

Installation

  1. Uncompress the downloaded file into a directory named $SONAR_RUNNER_HOME in the next steps.
     
  2. Update the global settings (database connection, server URL) by editing the file $SONAR_RUNNER_HOME/conf/sonar-runner.properties

    Code Block
    languagebash
    #----- Default Sonar 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&characterEncoding=utf8
    #sonar.jdbc.driver=com.mysql.jdbc.Driver
    
    #----- Oracle
    #sonar.jdbc.url=jdbc:oracle:thin:@localhost/XE
    #sonar.jdbc.driver=oracle.jdbc.driver.OracleDriver
    
    #----- Global database settings
    #sonar.jdbc.username=sonar
    #sonar.jdbc.password=sonar
    

     

     

  3. Create a new SONAR_RUNNER_HOME environment variable set to $SONAR_RUNNER_HOME.
     
  4. Add the $SONAR_RUNNER_HOME/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 :

    Code Block
    usage: sonar-runner [options]
    
    Options:
     -h,--help             Display help information
     -X,--debug            Produce execution debug output
     -D,--define <arg>     Define property
    

...

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.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+%22STANDALONE%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+%22STANDALONE%22SONAR-RUNNER-1.2%22+AND+status+%3D+Closed+ORDER+BY+priority+DESC&tempMax=1000

...