【问题标题】:Maven: Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.7.1:sonarMaven:无法执行目标 org.codehaus.mojo:sonar-maven-plugin:2.7.1:sonar
【发布时间】:2016-03-15 18:04:49
【问题描述】:

执行sonar:sonar goal on maven project时出错

尝试使用sonar-maven-plugin 版本2.7.15.0

错误:

Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.7.1:sonar (default-cli) on project XXX: 
Execution default-cli of goal org.codehaus.mojo:sonar-maven-plugin:2.7.1:sonar failed: Unable to load the mojo 'sonar' 
in the plugin 'org.codehaus.mojo:sonar-maven-plugin:2.7.1'. 
A required class is missing: Lorg/apache/maven/rtinfo/RuntimeInformation;

【问题讨论】:

  • 你的maven版本是什么?
  • Maven 版本是 m2e 1.3
  • m2e 1.3嵌入的运行时版本是多少?看起来像旧版本。我刚刚尝试使用 m2e 1.6.2(嵌入 Maven 运行时 3.3.3),它工作正常。
  • 您可能还需要更新版本的 Eclipse。
  • 大家好,问题已解决。我使用了 Sonar 5.2、Eclipse Luna 4.4.2 (SR2) 和 Maven-eclipse-plugin 1.6 (download.eclipse.org/technology/m2e/releases/1.6) 的组合。最近版本的 Eclipse 允许我安装 m2e 1.6,最近的声纳版本允许我执行声纳插件而不会出现代理错误。

标签: java maven sonarqube maven-plugin


【解决方案1】:

问题已解决。 我使用了 Sonar 5.2、Eclipse Luna 4.4.2 (SR2) 和 Maven-eclipse-plugin 1.6 (download.eclipse.org/technology/m2e/releases/1.6) 的组合。 最近版本的 Eclipse 允许我安装 m2e 1.6,最近的声纳版本允许我执行声纳插件而不会出现代理错误。

【讨论】:

    猜你喜欢
    • 2011-10-23
    • 2023-02-08
    • 2021-03-11
    • 2016-01-22
    • 2014-07-20
    • 2020-04-12
    • 2021-06-02
    • 2017-03-11
    • 2021-02-15
    相关资源
    最近更新 更多