Azure DevOps / Getting main component does not belong to specified organization

Yes, in gradle/maven mode, the project key is deduced from gradle/maven properties, and this is the main reason why this message could appear : from some reason, if you haven’t created your project yet on SonarCloud, the project key might already exist. You can override this by setting sonar.projectKey in the Additional properties field, under “Advanced” tab of the configuration.

1 Like