1

我们将 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
4

1 回答 1

0

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

sonar-1685

于 2011-08-24T10:06:05.323 回答