【问题标题】:SonarQube Maven Java Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.6.0.1398:sonarSonarQube Maven Java 无法执行目标 org.sonarsource.scanner.maven:sonar-maven-plugin:3.6.0.1398:sonar
【发布时间】:2021-03-11 22:15:47
【问题描述】:

SonarQube 喜欢打印我错误:

Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.6.0.1398:sonar (default-cli) on project demo: The folder 'xyz\pizzav2\PizzeriaFinalFinal\src\test\java' does not exist for 'com.example.pizza:demo' (base directory = xyz\pizzav2\PizzeriaFinalFinal) -> [Help 1]

xyz - 我的捷径;)

SonarQube 的这个问题让我失去了 10 天的时间。

非常感谢您的帮助...

【问题讨论】:

  • 你好 Wifi,我不是说我有解决方案,但你介意从你的 pom 文件中粘贴你的设置吗?如: 等等好吗?另外,您介意告诉我们更多有关 Sonar 服务器设置/版本的信息吗?你是如何运行扫描的?通过声纳:声纳? 3.7.0.1746 是否可以重现?
  • 不要将日志输出粘贴为图片,将其记录为文本。我什至无法阅读。错误消息表明您告诉 sonarqube “src/test/java”目录存在,但显然它不存在。如果问题对您现在还不明显,请显示您的声纳属性和文件夹结构。
  • 在“新卡”中打开图片:) i.stack.imgur.com/bA9ET.png
  • mvn clean verify sonar:sonar 而不仅仅是mvn sonar:sonar...
  • 当我尝试 mvn clean verify sonar:sonar 时出现错误:[ERROR] Failed to execute goal on project demo: Could not resolve dependencies for project com.example.pizza:demo:jar:0.0.1-SNAPSHOT: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in http://repository.springsource.com/maven/bundles/release was cached in the local repository, resolution will not be reattempted until the update interval of com.springsource.repository.bundles.release has elapsed or updates are forced -> [Help 1]

标签: java maven plugins sonarqube


【解决方案1】:

我在 pastebin 中的文件 pom。我怎么给你配置Sonar?什么文件?我通过 SonarStart.bat 文件运行声纳。

https://pastebin.com/DVn9WFTF

Wrapper.conf

https://pastebin.pl/view/1a8d7634

【讨论】:

    猜你喜欢
    • 2023-02-08
    • 2017-03-11
    • 2020-04-12
    • 2021-06-02
    • 2016-07-26
    • 1970-01-01
    • 1970-01-01
    • 2016-03-15
    • 2017-06-25
    相关资源
    最近更新 更多