无法执行目标org.codehaus.mojo:sonar-maven-plugin:2.0-beta-2:声纳

时间:2011-08-10 05:55:01

标签: plugins maven-2 jenkins sonarqube

我们正在使用Sonar从Jenkins开始的工作 现在我们在Jekins时遇到这个错误 试图运行sonar-maven-plugin:

[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 'org.sonar.jpa.session.DriverDatabaseConnector@1a791f, 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

1 个答案:

答案 0 :(得分:0)

错误消息指出“未找到SQL驱动程序com.mysql.jdbc.Driver”。 假设你的安装没问题,你能检查一下sonar.host.url不是以'/'结尾吗?

请参阅sonar-1685