Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If the Sonar plugin is connecting to localhost that's an indication that it's using the default settings. </p> <p>Using Maven, there are several ways to configure Sonar.</p> <h1>Jenkins plugin</h1> <p>The <a href="https://wiki.jenkins-ci.org/display/JENKINS/Sonar+plugin" rel="nofollow noreferrer">sonar plugin</a> for jenkins is the simplest way to enable Sonar. Sonar properties are managed centrally</p> <h1>Maven settings</h1> <p>Add the following profile to your Maven settings file ($HOME/.m2/settings.xml)</p> <pre><code>&lt;settings&gt; .. &lt;profiles&gt; &lt;profile&gt; &lt;id&gt;sonar&lt;/dev&gt; &lt;activeByDefault&gt;true&lt;/activeByDefault&gt; &lt;properties&gt; &lt;sonar.host.url&gt;XXXXX&lt;/onar.host.url&gt; &lt;sonar.jdbc.url&gt;YYYYY&lt;/sonar.jdbc.url&gt; .. .. &lt;/properties&gt; &lt;/profile&gt; .. &lt;/profiles&gt; .. &lt;/settings&gt; </code></pre> <p>Read the following answer for an easy way to manage Maven settings files across multiple Jenkins projects:</p> <ul> <li><a href="https://stackoverflow.com/questions/16685515/how-to-manage-maven-settings-xml-on-a-shared-jenkins-server/16703882#16703882">How to manage maven settings.xml on a shared jenkins server?</a></li> </ul> <h1>Maven properties</h1> <p>You can set the Sonar properties within your POM as follows:</p> <pre><code>&lt;properties&gt; &lt;sonar.host.url&gt;XXXXX&lt;/onar.host.url&gt; &lt;sonar.jdbc.url&gt;YYYYY&lt;/sonar.jdbc.url&gt; .. .. &lt;/properties&gt; </code></pre> <p>Or import your sonar.properties file into your build using the <a href="http://mojo.codehaus.org/properties-maven-plugin/usage.html" rel="nofollow noreferrer">properties plugin</a></p> <p>I would favour one of the first two approaches. This option requires changing files within your project. Items like passwords should never be committed into revision control.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload