【发布时间】: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