title: SonarQube try to use 'org.h2.Driver' when MySql has been specified instead
body: <p>Requirement is to <code>mvn clean install sonar:sonar</code> deploy/install snapshots from Machine Maven to Machine SonarQube which will store it in Machine MySql which has a MySql database.
  Machine MySql is only visible to Machine SonarQube. Machine SonarQube is visible to the intranet which everyone within the intranet can access it.
  When running <code>mvn clean install sonar:sonar</code> from Machine Maven the following error occurs:</p>
  
  <blockquote>
    <p>[ERROR] Failed to execute goal
    org.codehaus.mojo:sonar-maven-plugin:2.6:sonar (default-cli) on
    project my-project: Fail to connect to database: Cannot load JDBC
    driver class 'org.h2.Driver' -> [Help 1]</p>
  </blockquote>
  
  <p>Machine Maven has the following profile in ~/.m2/settings.xml:</p>
  
  <blockquote>
  <pre><code>&lt;profile&gt;
      &lt;id&gt;sonar&lt;/id&gt;
      &lt;activation&gt;
          &lt;activeByDefault&gt;true&lt;/activeByDefault&gt;
      &lt;/activation&gt;
      &lt;properties&gt;
          &lt;sonar.host.url&gt;https://sonarqube.myproject.com&lt;/sonar.host.url&gt;
      &lt;/properties&gt;
  &lt;/profile&gt;
  </code></pre>
  </blockquote>
  
  <p>sonar-maven-plugin has been added as per documentation found in <a href="http://www.mojohaus.org/sonar-maven-plugin/plugin-info.html" rel="nofollow">here</a>.</p>
  
  <p>Also sonar-maven-plugin has been added as a dependency to the pom.xml:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
      &lt;artifactId&gt;sonar-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;2.5&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>I know the <a href="http://docs.sonarqube.org/display/SONAR/Installing+and+Configuring+Maven" rel="nofollow">documentation</a> asks for jdbc driver, url, username and password to be specified in maven settings sonar profile properties which I don't want to expose to other people, so this has been specified in the Machine SonarQube conf/sonar.properties</p>
  
  <p>Is there a way to depoly/install these snapshots to Machine MySql through Machine SonarQube run the 'mvn clean install sonar:sonar' from Machine Maven?</p>
  
  <p>Thanks in advance.</p>