不允许SonarQube重复密钥

时间:2015-04-15 03:17:24

标签: sonarqube sonarqube-5.0

我们最近迁移并升级了我们的sonarqube环境。我们有一个与我们的声纳服务器分开的jenkins服务器。

我们的声纳构建会产生以下错误,我一直在寻找解决方案而无法找到解决方案。我不太了解sonarqube配置或jenkins配置,这可能是我无法解决问题的原因。

[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-
plugin:2.5:sonar (default-cli) on project project-name: Unable to register 
extension org.sonar.api.config.PropertyDefinition: Duplicate Keys not 
allowed. Duplicate for 'org.sonar.api.config.PropertyDefinition-
sonar.dbcleaner.cleanDirectory' -> [Help 1]

我们在声纳上安装了以下插件:

Checkstyle [checkstyle] 2.2 Analyze Java code with Checkstyle.
Cobertura [cobertura] 1.6.3 Get code coverage with Cobertura.
Database Cleaner [dbcleaner] 4.5.4 Optimizes database performances by removing old and useless data.
Design [design] 4.5.4 Analyze Java bytecode to compute O.O. metrics and extract dependencies between resources.
Findbugs [findbugs] 3.2 Analyze Java code with Findbugs 3.0.1.
Java [java] 3.0 SonarQube rule engine.
JavaScript [javascript] 2.3 Enables analysis of JavaScript projects.
Motion Chart [motionchart]  1.7 Display how a set of metrics evolves over time (requires an internet access).
PDF Report [pdfreport]  1.4 SonarQube plugin for PDF reporting
PMD [pmd]   2.3 Analyze Java code with PMD.
Surefire [surefire] 3.3.2   Get results of unit tests with Surefire.
Useless Code Tracker [uselesscodetracker]   1.0 Reports on source code that can be reduced.
Web [web]   2.3 Analyze HTML (also within PHP/Ruby/etc. templates) and JSP/JSF code.

有什么建议吗?

1 个答案:

答案 0 :(得分:0)

Database Cleaner插件似乎导致了这个问题。该版本可能与SonarQube5.0.1不兼容。问题已解决。