繁体   English   中英

如何将SpringBoot项目连接到SonarQube

[英]How to connect a SpringBoot project to SonarQube

我正在尝试使用maven插件将Spring Boot应用程序连接到SonarCloud。 具体来说,我正在尝试运行(我从SonarCloud教程获得了这些说明):

mvn sonar:sonar \\ -Dsonar.organization=myacconunt-github \\ -Dsonar.host.url=https://sonarcloud.io \\ -Dsonar.login=mygeneratedtoken

一切似乎都很好,但是我得到了这个错误:

[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar (default-cli) on project demo: You're only authorized to execute a local (preview) SonarQube analysis without pushing the results to the SonarQube server. Please contact your SonarQube administrator. -

我一直在为我的用户检查Sonar权限,并且一切看起来都不错。 我认为我的用户具有权限,因为我有一个来自同一GitHub帐户的另一个项目正在由Sonar进行分析。 您有与此类似的问题吗?

感谢@Fabrice,我设法解决了这个问题。 原来,我使用的是在SonarCloud中已经使用过的groupId:artifactId 因此,只需更改groupIdartifactId

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM