2011-08-10 3 views
1

Nous utilisons Sonar avec les travaux lancés par Jenkins.
Maintenant, nous obtenons cette erreur lorsque Jekins tente d'exécuter sonar-maven-plugin:Échec de l'exécution de l'objectif org.codehaus.mojo: sonar-maven-plugin: 2.0-beta-2: sonar

[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0-beta-2:sonar (default-cli) on project SS_MGWTDMWebUI: Can not execute Sonar: PicoLifecycleException: method 'public void org.sonar.jpa.session.AbstractDatabaseConnector.start()', instance '[email protected], java.lang.RuntimeException: wrapper: Cannot open connection to database: SQL driver not found com.mysql.jdbc.Driver -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 
+0

Utilisez-vous le [Jenkins plug-in Sonar] (http://docs.codehaus.org/display/SONAR/Hudson+and+Jenkins+Plugin) ou êtes-vous invoquez directement Sonar? Avez-vous quelque chose d'inhabituel dans vos fichiers 'pom.xml' ou' settings.xml'? –

Répondre

0

Le message d'erreur états "pilote SQL introuvable com.mysql.jdbc.Driver". En supposant que votre installation est OK, pouvez-vous vérifier sonar.host.url ne se termine pas par '/'?

voir sonar-1685

Questions connexes