Quick Search
Browse
Pages
Blog
Labels
Attachments
Mail
Advanced
What’s New
Space Directory
Feed Builder
Keyboard Shortcuts
Confluence Gadgets
Log In
Dashboard
Sonar
Copy Page
You are not logged in. Any changes you make will be marked as
anonymous
. You may want to
Log In
if you already have an account. You can also
Sign Up
for a new account.
This page is being edited by
.
Paragraph
Paragraph
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Preformatted
Quote
Bold
Italic
Underline
More colours
Strikethrough
Subscript
Superscript
Monospace
Clear Formatting
Bullet list
Numbered list
Outdent
Indent
Align left
Align center
Align right
Link
Table
Insert
Insert Content
Image
Link
Attachment
Symbol
Emoticon
Wiki Markup
Horizontal rule
tinymce.confluence.insert_menu.macro_desc
Info
JIRA Issue
Status
Gallery
Tasklist
Table of Contents
Other Macros
Page Layout
No Layout
Two column (simple)
Two column (simple, left sidebar)
Two column (simple, right sidebar)
Three column (simple)
Two column
Two column (left sidebar)
Two column (right sidebar)
Three column
Three column (left and right sidebars)
Undo
Redo
Find/Replace
Keyboard Shortcuts Help
<table class="confluenceTable"><tbody><tr><th class="nohighlight confluenceTh"><strong>Name</strong></th><th class="nohighlight confluenceTh">Sonar Runner</th></tr><tr><td class="confluenceTd"><strong><span style="color: rgb(0,0,0);">Latest version</span></strong></td><td class="confluenceTd"><span style="color: rgb(0,0,0);"><strong>2.2</strong> ( 18 April 2013 )</span></td></tr><tr><td class="confluenceTd"><strong><span style="color: rgb(0,0,0);">Requires Sonar version</span></strong></td><td class="confluenceTd"><span style="color: rgb(0,0,0);"><strong>3.0</strong> or higher ( check </span><a href="http://docs.codehaus.org/display/SONAR/Plugin+version+matrix">version compatibility</a> )</td></tr><tr><td class="confluenceTd"><strong><span style="color: rgb(0,0,0);">Download</span></strong></td><td class="confluenceTd"><a href="http://repo1.maven.org/maven2/org/codehaus/sonar/runner/sonar-runner-dist/2.2/sonar-runner-dist-2.2.zip">http://repo1.maven.org/maven2/org/codehaus/sonar/runner/sonar-runner-dist/2.2/sonar-runner-dist-2.2.zip</a></td></tr><tr><td class="confluenceTd"><strong><span style="color: rgb(0,0,0);">License</span></strong></td><td class="confluenceTd"><span style="color: rgb(0,0,0);">GNU LGPL 3</span></td></tr><tr><td class="confluenceTd"><strong><span style="color: rgb(0,0,0);">Developers</span></strong></td><td class="confluenceTd"><span style="color: rgb(0,0,0);">Evgeny Mandrikov, Simon Brandhof, Fabrice Bellingard</span></td></tr><tr><td class="confluenceTd"><strong><span style="color: rgb(0,0,0);">Issue tracker</span></strong></td><td class="confluenceTd"><a href="http://jira.codehaus.org/browse/SONARPLUGINS/component/14640">http://jira.codehaus.org/browse/</a><a href="http://jira.codehaus.org/browse/SONARPLUGINS/component/14640">SONARPLUGINS/component/14640</a><a href="http://jira.codehaus.org/browse/SONARPLUGINS/component/14640" /></td></tr><tr><td class="confluenceTd"><strong><span style="color: rgb(0,0,0);">Sources</span></strong></td><td class="confluenceTd"><a href="https://github.com/Sonarsource/sonar-runner">https://github.com/Sonarsource/sonar-runner</a><br /><a href="https://svn.codehaus.org/sonar-plugins/tags/sonar-runner-1.4/" /></td></tr></tbody></table><h1>Features</h1><p>The Sonar Runner is recommended as the default launcher to <a class="confluence-link" href="/display/SONAR/Analyzing+Source+Code" data-linked-resource-id="113541695" data-linked-resource-type="page" data-linked-resource-default-alias="Analyzing Source Code" data-base-url="http://docs.codehaus.org">analyze a project with Sonar</a>.</p><h1>Prerequisites</h1><ul><li>Java 6 or higher</li></ul><h1>Installation</h1><ol><li>Uncompress the downloaded file into a directory named $SONAR_RUNNER_HOME in the next steps.<br /> </li><li><p>Update the global settings (database connection, server URL) by editing the file $SONAR_RUNNER_HOME/conf/sonar-runner.properties</p><table class="wysiwyg-macro" data-macro-name="code" data-macro-parameters="language=bash" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2NvZGU6bGFuZ3VhZ2U9YmFzaH0&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre>#----- 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&amp;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 </pre></td></tr></table><p> </p><p> </p></li><li>Create a new SONAR_RUNNER_HOME environment variable set to $SONAR_RUNNER_HOME.<br /> </li><li>Add the $SONAR_RUNNER_HOME/bin directory to your path.<br /> </li><li><p>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 :</p><table class="wysiwyg-macro" data-macro-name="code" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2NvZGV9&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre>usage: sonar-runner [options] Options: -h,--help Display help information -X,--debug Produce execution debug output -D,--define <arg> Define property </pre></td></tr></table></li></ol><p>If you need more debug information you can add the property sonar.verbose by adding the command line parameter -Dsonar.verbose=true.</p><p>You are now ready to <a class="confluence-link" href="/display/SONAR/Analyzing+with+Sonar+Runner" data-linked-resource-id="192872482" data-linked-resource-type="page" data-linked-resource-default-alias="Analyzing with Sonar Runner" data-base-url="http://docs.codehaus.org">analyze a project with the Sonar Runner</a>.</p><h1>Change Log</h1><p><img class="editor-inline-macro" src="/plugins/servlet/confluence/placeholder/macro?definition=e2ppcmFpc3N1ZXM6YW5vbnltb3VzPXRydWV8dGl0bGU9VmVyc2lvbiAyLjJ8aGVpZ2h0PTE1MHxyZW5kZXJNb2RlPXN0YXRpY3x3aWR0aD05MDB8Y29sdW1ucz10eXBlO2tleTtzdW1tYXJ5O3ByaW9yaXR5fHVybD1odHRwOi8vamlyYS5jb2RlaGF1cy5vcmcvc3IvamlyYS5pc3N1ZXZpZXdzOnNlYXJjaHJlcXVlc3QteG1sL3RlbXAvU2VhcmNoUmVxdWVzdC54bWw_anFsUXVlcnk9cHJvamVjdCslM0QrU09OQVJQTFVHSU5TK0FORCtmaXhWZXJzaW9uKyUzRCslMjJTT05BUi1SVU5ORVItMi4yJTIyK0FORCtzdGF0dXMrJTNEK0Nsb3NlZCtPUkRFUitCWStwcmlvcml0eStERVNDJnRlbXBNYXg9MTAwMH0&locale=en_GB&version=2" data-macro-name="jiraissues" data-macro-parameters="anonymous=true|columns=type;key;summary;priority|height=150|renderMode=static|title=Version 2.2|url=http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery\=project+%3D+SONARPLUGINS+AND+fixVersion+%3D+%22SONAR-RUNNER-2.2%22+AND+status+%3D+Closed+ORDER+BY+priority+DESC&tempMax\=1000|width=900"></p><p> </p><p><img class="editor-inline-macro" src="/plugins/servlet/confluence/placeholder/macro?definition=e2ppcmFpc3N1ZXM6YW5vbnltb3VzPXRydWV8dGl0bGU9VmVyc2lvbiAyLjF8aGVpZ2h0PTE1MHxyZW5kZXJNb2RlPXN0YXRpY3x3aWR0aD05MDB8Y29sdW1ucz10eXBlO2tleTtzdW1tYXJ5O3ByaW9yaXR5fHVybD1odHRwOi8vamlyYS5jb2RlaGF1cy5vcmcvc3IvamlyYS5pc3N1ZXZpZXdzOnNlYXJjaHJlcXVlc3QteG1sL3RlbXAvU2VhcmNoUmVxdWVzdC54bWw_anFsUXVlcnk9cHJvamVjdCslM0QrU09OQVJQTFVHSU5TK0FORCtmaXhWZXJzaW9uKyUzRCslMjJTT05BUi1SVU5ORVItMi4xJTIyK0FORCtzdGF0dXMrJTNEK0Nsb3NlZCtPUkRFUitCWStwcmlvcml0eStERVNDJnRlbXBNYXg9MTAwMH0&locale=en_GB&version=2" data-macro-name="jiraissues" data-macro-parameters="anonymous=true|columns=type;key;summary;priority|height=150|renderMode=static|title=Version 2.1|url=http://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|width=900"></p><p> </p><p><img class="editor-inline-macro" src="/plugins/servlet/confluence/placeholder/macro?definition=e2ppcmFpc3N1ZXM6YW5vbnltb3VzPXRydWV8dGl0bGU9VmVyc2lvbiAyLjB8aGVpZ2h0PTE1MHxyZW5kZXJNb2RlPXN0YXRpY3x3aWR0aD05MDB8Y29sdW1ucz10eXBlO2tleTtzdW1tYXJ5O3ByaW9yaXR5fHVybD1odHRwOi8vamlyYS5jb2RlaGF1cy5vcmcvc3IvamlyYS5pc3N1ZXZpZXdzOnNlYXJjaHJlcXVlc3QteG1sL3RlbXAvU2VhcmNoUmVxdWVzdC54bWw_anFsUXVlcnk9cHJvamVjdCslM0QrU09OQVJQTFVHSU5TK0FORCtmaXhWZXJzaW9uKyUzRCslMjJTT05BUi1SVU5ORVItMi4wJTIyK0FORCtzdGF0dXMrJTNEK0Nsb3NlZCtPUkRFUitCWStwcmlvcml0eStERVNDJnRlbXBNYXg9MTAwMH0&locale=en_GB&version=2" data-macro-name="jiraissues" data-macro-parameters="anonymous=true|columns=type;key;summary;priority|height=150|renderMode=static|title=Version 2.0|url=http://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|width=900"></p><p> </p><p><img class="editor-inline-macro" src="/plugins/servlet/confluence/placeholder/macro?definition=e2ppcmFpc3N1ZXM6YW5vbnltb3VzPXRydWV8dGl0bGU9VmVyc2lvbiAxLjR8aGVpZ2h0PTE1MHxyZW5kZXJNb2RlPXN0YXRpY3x3aWR0aD05MDB8Y29sdW1ucz10eXBlO2tleTtzdW1tYXJ5O3ByaW9yaXR5fHVybD1odHRwOi8vamlyYS5jb2RlaGF1cy5vcmcvc3IvamlyYS5pc3N1ZXZpZXdzOnNlYXJjaHJlcXVlc3QteG1sL3RlbXAvU2VhcmNoUmVxdWVzdC54bWw_anFsUXVlcnk9cHJvamVjdCslM0QrU09OQVJQTFVHSU5TK0FORCtmaXhWZXJzaW9uKyUzRCslMjJTT05BUi1SVU5ORVItMS40JTIyK0FORCtzdGF0dXMrJTNEK0Nsb3NlZCtPUkRFUitCWStwcmlvcml0eStERVNDJnRlbXBNYXg9MTAwMH0&locale=en_GB&version=2" data-macro-name="jiraissues" data-macro-parameters="anonymous=true|columns=type;key;summary;priority|height=150|renderMode=static|title=Version 1.4|url=http://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|width=900"></p>
Please type the word appearing in the picture.
Attachments
Labels
Location
Watch this page
< Edit
Preview >
Loading…
Save
Cancel
Next hint
search
attachments
weblink
advanced