为多模块 Maven 项目设置 SonarCloud 时出错

Error while setting up SonarCloud for a multimodule Maven project

项目托管于:

本地使用的命令:mvn verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar secret 被添加到 github 或 env 变量,属性被添加到 core/pom.xml 测试的不同解决方案:

错误:

Project 'opencellsoft_core' can't have 2 modules with the following key: opencellsoft_core

错误:

You're not authorized to run analysis. Please contact the project administrator.

opencellsoft_core ${project.groupId}:${project.artifactId}

错误:

You're not authorized to run analysis. Please contact the project administrator.

你知道如何解决这个问题吗?

谢谢

第三个解决方案是正确的,但需要在 Repository secrets 中添加 secret token 而不是 Github 中的 environment secrets。可以在此处找到更多信息 https://community.sonarsource.com/t/error-while-setting-up-sonarcloud-for-a-multimodule-maven-project/39880/2