首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法执行目标org.codehaus.mojo:sonar-maven-plugin:2.0-beta-2:sonar

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

Stack Overflow用户
提问于 2011-08-10 13:55:01
回答 1查看 4.5K关注 0票数 1

我们正在使用Sonar处理Jenkins启动的作业。

现在,当Jekins尝试运行sonar-maven-plugin时,我们得到了这个错误:

代码语言:javascript
复制
[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
EN

回答 1

Stack Overflow用户

发布于 2011-08-24 18:06:05

错误消息指出"SQL driver not found com.mysql.jdbc.Driver“。假设你的安装是正常的,你能检查sonar.host.url没有以'/‘结尾吗?

请参阅sonar-1685

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/7006472

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档