gpt4 book ai didi

java.lang.NoSuchMethodError : org. sonar.api.resources.Project.getConfiguration()Lorg/apache/commons/configuration/配置

转载 作者:行者123 更新时间:2023-11-29 04:29:23 25 4
gpt4 key购买 nike

您好,我在 java 项目上运行 sonarqube 分析并尝试获取它的 PDF 报告时遇到以下错误。 sonarqube 分析通过 Jenkins Job 运行,分析运行良好,但在分析的 PDF 报告生成期间显示以下错误。任何人都可以帮忙吗?

使用:sonarqube5.6、java8、jenkins 2.46、sonar-pdfreport-plugin-1.4

ERROR: Error during Sonar runner execution
org.sonar.runner.impl.RunnerException: Unable to execute Sonar
at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91)
at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
at java.security.AccessController.doPrivileged(Native Method)
at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
at org.sonar.runner.api.Runner.execute(Runner.java:100)
at org.sonar.runner.Main.executeTask(Main.java:70)
at org.sonar.runner.Main.execute(Main.java:59)
at org.sonar.runner.Main.main(Main.java:53)
Caused by: java.lang.NoSuchMethodError: org.sonar.api.resources.Project.getConfiguration()Lorg/apache/commons/configuration/Configuration;
at org.sonar.report.pdf.batch.PDFPostJob.shouldExecuteOnProject(PDFPostJob.java:57)
at org.sonar.batch.bootstrap.BatchExtensionDictionnary.shouldKeep(BatchExtensionDictionnary.java:260)
at org.sonar.batch.bootstrap.BatchExtensionDictionnary.getFilteredExtensions(BatchExtensionDictionnary.java:101)
at org.sonar.batch.bootstrap.BatchExtensionDictionnary.select(BatchExtensionDictionnary.java:74)
at org.sonar.batch.phases.PostJobsExecutor.execute(PostJobsExecutor.java:52)

谢谢。任何

最佳答案

Sonar pdfreport plugin page指出,pdfreport 1.4 与 SonarQube 版本 4.5.1-4.5.7 兼容。

关于java.lang.NoSuchMethodError : org. sonar.api.resources.Project.getConfiguration()Lorg/apache/commons/configuration/配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44457522/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com