Validation of project failed: o Module "xx" is already part of project "cxx"
Sonarqube在扫描Maven多模块项目的时候,需要在parent pom添加一个关键属性sonar.moduleKey
:
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<sonar.login>6f5a1c3b4061c4198f620a6df917890faca048c</sonar.login>
<sonar.projectKey>xxxx-project</sonar.projectKey>
<sonar.moduleKey>${project.artifactId}</sonar.moduleKey>
<sonar.projectName>xxxx-project</sonar.projectName>
</properties>
https://blog.csdn.net/zhangrui1037102215/article/details/79379200