注入错误:org.codehaus.mojo.sonar.SonarMojo。 java.lang.NoClassDefFoundError:Lorg / apache / maven / shared / dependency / tree / DependencyTreeBuilder

时间:2017-04-19 07:35:33

标签: maven jenkins sonarqube

声纳构建失败并出现以下错误。我正在使用:

  • sonar-maven-plugin-2.6,
  • maven-3.0.3,
  • sonarqube server - 3.4.1,
  • Jenkins -1.574,
  • 声纳插件 - 2.1

请求帮助我解决以下错误,阻止我的发布。

Error injecting: org.codehaus.mojo.sonar.SonarMojo
java.lang.NoClassDefFoundError:Lorg/apache/maven/shared/dependency/tree/DependencyTreeBuilder;
Caused by: java.lang.ClassNotFoundException: org.apache.maven.shared.dependency.tree.DependencyTreeBuilder

failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.6:sonar (default-cli) on project;Execution default-cli of goal org.codehaus.mojo:sonar-maven-plugin:2.6:sonar failed: Unable to load the mojo 'sonar' in the plugin 'org.codehaus.mojo:sonar-maven-plugin:2.6'. A required class is missing: Lorg/apache/maven/shared/dependency/tree/DependencyTreeBuilder;

0 个答案:

没有答案