MySQL-setup Sonar

Ich habe gerade heruntergeladen Sonar 3.2 und konfiguriert haben, das sonar.die properties-Dateien um eine Verbindung zu meinem lokalen MySql-Datenbank. Ich habe die folgende Einstellung aktiviert:

sonar.jdbc.url:   jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true
sonar.jdbc.driverClassName:   com.mysql.jdbc.Driver

Ich bin in der Lage, den server zu starten, ohne jeden Fehler und bin in der Lage, loggen Sie sich in die Sonar-Oberfläche allerdings, wenn ich laufen 'mvn sonar:sonar' auf mein maven-Projekt bekomme ich die folgende Fehlermeldung:

[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0:sonar (default-cli) on project vrservices: Can not execute Sonar: Fail to connect to database: Cannot load JDBC driver class 'org.h2.Driver' -> [Help 1]

Ich habe ein paar Foren, die sagen, legen Sie die folgenden code in der settings.xml die Datei jedoch ist dies immer noch nicht beheben das Problem.

  <profile>
      <id>sonar</id>
      <activation>
          <activeByDefault>true</activeByDefault>
      </activation>
      <properties>
          <!-- EXAMPLE FOR MYSQL -->
          <sonar.jdbc.url>jdbc:mysql://localhost:3306/sonar?useUnicode=true&amp;characterEncoding=utf8</sonar.jdbc.url>
          <sonar.jdbc.driver>com.mysql.jdbc.Driver</sonar.jdbc.driver>
          <sonar.jdbc.username>root</sonar.jdbc.username>
          <sonar.jdbc.password></sonar.jdbc.password>
      </properties>
  </profile>

Ich Frage mich, ob jemand über dieses Problem auch und wenn ja, wie hast du es beheben?

Vielen Dank im Voraus!

InformationsquelleAutor Harvey | 2012-09-10
Schreibe einen Kommentar