title: Error running sonar profile
body: <p>I am trying to run Sonar code quality against my code base and getting following exception. I have successfully installed Sonar server and <a href="http://gsi-547576:9900" rel="nofollow">http://gsi-547576:9900</a> returns me the home page without any issues. I have not connected Sonar to any external DB and currently using default in-memory DB.</p>
  
  <p><strong>Command using to run Sonar:</strong></p>
  
  <pre><code>mvn clean install -Psonar sonar:sonar
  </code></pre>
  
  <p><strong>Error Log:</strong></p>
  
  <pre><code>[INFO] SonarQube version: 5.0
  INFO: Default locale: "en_US", source code encoding: "UTF-8"
  INFO: Work directory: C:\nital\my-pet-projects\istore\istore-mvc2\istore-mvc2-domain\target\sonar
  INFO: SonarQube Server 5.0
  [INFO] [11:21:11.716] Load global referentials...
  [INFO] [11:21:11.916] Load global referentials done: 200 ms
  [INFO] [11:21:11.916] User cache: C:\Users\chandeln\.sonar\cache
  [INFO] [11:21:11.926] Install plugins
  [INFO] [11:21:11.966] Install JDBC driver
  [INFO] [11:21:11.976] Create JDBC datasource for jdbc:h2:tcp://localhost/sonar
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 7.576 s
  [INFO] Finished at: 2015-05-04T11:21:14-04:00
  [INFO] Final Memory: 23M/224M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.6:sonar (default-cli) on project istore-mvc2-domain: Fail to connect to database: Cannot create PoolableConnectionFactory (Co
  nnection is broken: "java.net.ConnectException: Connection refused: connect: localhost" [90067-176]) -&gt; [Help 1]
  [ERROR]
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  </code></pre>
  
  <p><strong>settings.xml</strong></p>
  
  <pre><code>   &lt;profile&gt;
         &lt;id&gt;sonar&lt;/id&gt;
         &lt;properties&gt;
            &lt;sonar.host.url&gt;http://gsi-547576:9900/&lt;/sonar.host.url&gt;
         &lt;/properties&gt;
      &lt;/profile&gt;
  </code></pre>
  
  <p><strong>pom.xml</strong></p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
  
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;com.istore&lt;/groupId&gt;
      &lt;artifactId&gt;istore-mvc2-domain&lt;/artifactId&gt;
      &lt;version&gt;1.2-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;jar&lt;/packaging&gt;
  
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;maven.compiler.source&gt;1.7&lt;/maven.compiler.source&gt;
          &lt;maven.compiler.target&gt;1.7&lt;/maven.compiler.target&gt;
      &lt;/properties&gt;
  
      &lt;scm&gt;
          &lt;connection&gt;scm:svn:https://gsi-547576/svn/istore/istore-mvc2-domain/trunk&lt;/connection&gt;
          &lt;developerConnection&gt;scm:svn:https://gsi-547576/svn/istore/istore-mvc2-domain/trunk&lt;/developerConnection&gt;
          &lt;url&gt;https://gsi-547576/svn/istore/istore-mvc2-domain/trunk&lt;/url&gt;
      &lt;/scm&gt;
  
      &lt;build&gt;
          &lt;finalName&gt;${project.artifactId}&lt;/finalName&gt;
          &lt;plugins&gt;
              &lt;!-- Releasing a project --&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-release-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.5.1&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;tagBase&gt;https://gsi-547576/svn/istore/istore-mvc2-domain/tags&lt;/tagBase&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  
      &lt;!-- For deploying the artifacts to Nexus --&gt;    
      &lt;distributionManagement&gt;
          &lt;snapshotRepository&gt;
              &lt;id&gt;my-nexus-server&lt;/id&gt;
              &lt;name&gt;Internal Snapshots&lt;/name&gt;
              &lt;url&gt;http://gsi-547576:8081/nexus/content/repositories/snapshots&lt;/url&gt;
          &lt;/snapshotRepository&gt;
          &lt;repository&gt;
              &lt;id&gt;my-nexus-server&lt;/id&gt;
              &lt;name&gt;Internal Releases&lt;/name&gt;
              &lt;url&gt;http://gsi-547576:8081/nexus/content/repositories/releases&lt;/url&gt;
          &lt;/repository&gt;
      &lt;/distributionManagement&gt;
  
  &lt;/project&gt;
  </code></pre>