我从声纳网站下载了 sonar-3.5.1。我像这样设置 sonar.properties 数据库:
sonar.jdbc.username: sonar
sonar.jdbc.password: sonar
sonar.jdbc.url: jdbc:h2:tcp://localhost:9092/sonar
sonar.jdbc.driverClassName: org.h2.Driver
sonar.embeddedDatabase.port: 9092
然后我将声纳部署到 Tomcat。我可以从http://xxzjjc:8080/sonar
. 然后我开始运行分析 sonar-runner.bat。但发生错误:
ERROR: Error during Sonar runner execution
ERROR: Unable to execute Sonar
ERROR: Caused by: Fail to connect to database
ERROR: Caused by: Cannot load JDBC driver class 'net.sourceforge.jtds.jdbc.Driver'
ERROR: Caused by: net.sourceforge.jtds.jdbc.Driver
我尝试了一天,但不幸的是,我没有找到任何东西。谁能给我一个解决方案?非常感谢!