【问题标题】:Sonar build gives error for :sonar-maven3-plugin:jar:5.4声纳构建给出错误:sonar-maven3-plugin:jar:5.4
【发布时间】:2016-08-27 16:08:37
【问题描述】:

我已将 Sonar 版本升级到 5.4,在运行 POM 生成报告时,出现以下错误:

[INFO]
[INFO] --- sonar-maven-plugin:2.1:sonar (default-cli) @ HEP05_NY_R2.0_JUNIT_ProviderInformationComponents ---
[INFO] SonarQube version: 5.4
[WARNING] The POM for org.codehaus.sonar:sonar-maven3-plugin:jar:5.4 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.953 s
[INFO] Finished at: 2016-05-02T15:19:28-04:00
[INFO] Final Memory: 11M/239M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.1:sonar (default-cli) on project HEP05_NY_R2.0_JUNIT_ProviderInformationComponents: Can not execute SonarQube analysis: Plugin org.codehaus.sonar:sonar-maven3-plugin:5.4 or one of its dependencies could not be resolved: Failure to find org.codehaus.sonar:sonar-maven3-plugin:jar:5.4 in http://10.234.231.225:8081/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [Help 1]

谁能告诉我,我应该在哪里解决错误,如果您需要更多详细信息,请告诉我。

【问题讨论】:

    标签: sonarqube sonarqube-scan sonarqube-5.4


    【解决方案1】:

    您在此基础上标记了您的问题“sonarqube-5.4”,我会说您使用的 Maven 插件版本不兼容。

    根据the docs,2.2.1 与 SonarQube 4.5.x 版本兼容,但不与 5.x 兼容。

    【讨论】:

    • 你说的是马本版吗?在这种情况下,我有 Apache Maven 3.2.5
    • 不,SonarQube Scanner for Maven 的版本
    猜你喜欢
    • 2016-05-26
    • 2018-06-30
    • 2014-12-23
    • 1970-01-01
    • 1970-01-01
    • 2018-03-09
    • 2016-01-22
    • 1970-01-01
    • 2018-09-06
    相关资源
    最近更新 更多