【问题标题】:SonarQube Duplicate Keys not allowed不允许 SonarQube 重复键
【发布时间】:2015-04-15 14:10:09
【问题描述】:

我们最近迁移并升级了我们的 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.

有什么建议吗?

【问题讨论】:

    标签: sonarqube sonarqube-5.0


    【解决方案1】:

    Database Cleaner 插件似乎是导致该问题的原因。该版本可能与 SonarQube5.0.1 不兼容。问题已解决。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-08-31
      • 2013-08-22
      • 1970-01-01
      • 2015-04-24
      • 1970-01-01
      • 2019-08-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多