基于h2数据库的声纳

基于h2数据库的声纳,h2,sonarqube,H2,Sonarqube,我想知道是否可以使用h2数据库运行sonar 3.1.1?我尝试部署配置了h2数据库的sonar,但出现以下异常: 21-Jul-2012 23:32:45 org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.sonar.server.platform.Platform

我想知道是否可以使用h2数据库运行sonar 3.1.1?我尝试部署配置了h2数据库的sonar,但出现以下异常:

21-Jul-2012 23:32:45 org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.sonar.server.platform.PlatformLifecycleListener
org.sonar.api.utils.SonarException: Unable to determine database dialect to use within sonar with dialect null jdbc url jdbc:h2:tcp://localhost:9092/~/sonar

我搜索了一下,最可能的原因是3.1.1不支持h2。使用h2运行3.1.1是否有解决方法?

中未列出h2数据库。遗憾的是,像你一样,我认为它优于Apache德比。 声纳团队强烈反对在生产环境中使用德比。我在发行说明中看到Derby升级现在被禁用。除了不喜欢Derby之外,您还有使用H2的好用例吗?:-)

最初使用嵌入式数据库设置声纳很有诱惑力。问题是,声纳在您的组织内的应用可能会传播开来,最终有一天会有人开始询问备份和DR。。。。在这一点上,适当的数据库将使这种转换更容易

更新 :报告支持的H2数据库。这种支持来自声纳3.2:

David Gageot补充了一条评论——2012年7月4日上午5:06

最新版本更智能。h2是sonar>=3.2的默认值,derby是sonar的默认值