如何解决“无法执行目标org.sonarsource.scanner.maven:sonar-maven-plugin:3.0.2:sonar”?

问题描述 投票:0回答:1

我在执行命令“ mvn sonar:sonar -Dsonar.host.url =http://localhost:9000-Dsonar.login = 25d0a6a8a078272ad5c53e5c76fb15e6a4242736“时遇到一些问题。JDK 1.8声纳波贝7.4Maven 3.5.4我该如何解决我的麻烦?下面我从git bash发布我的屏幕代码

[INFO] Calculating CPD for 599 files
[INFO] CPD calculation finished
[INFO] Analysis report generated in 18123ms, dir size=7 MB
[INFO] Analysis reports compressed in 4815ms, zip size=3 MB
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:49 min
[INFO] Finished at: 2019-12-19T11:28:56+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.0.2:sonar (default-cli) on project traccar: Failed to upload report - An error has occurred. Please contact your administrator -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException```


maven sonarqube sonarqube-scan
1个回答
0
投票

您可以查看this Sonarsource社区讨论。一般政策是仅支持LTS版本。在您的情况下,您应该计划升级到version 7.9.2并更新所有插件和(在这种情况下)扫描仪。您没有解释为什么您声明“必须使用特定版本的Sonar”。如果您不想要最新的功能,建议您的客户仅使用LTS版本。

© www.soinside.com 2019 - 2024. All rights reserved.