Issue with inherited sonar.organization property using a self hosted instance

  • which versions are you using : by looking at the maven output, it seems the Sonar Scanner plugin version is sonar-maven-plugin: . The server is SonarQube version: 6.7.6

I’m trying to analyze project and make it to appear in a self-hosted SonarQube instance. For this I am compiling the project and run tests (this part is ok).

The problem I have is with the next step, the sonar:sonar goal where I get:

[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin: (default-cli) on project xwiki-platform: Unable to load component class Unable to load component class org.sonar.scanner.rule.ModuleQProfiles: Error 404 on https://sonarqube.self.hosted/api/qualityprofiles/search.protobuf?defaults=true&organization=xwiki : {"errors":[{"msg":"No organization with key ''xwiki"}]} -> [Help 1]

Notice that the sonar project properties are source within the parent POM at

And that I have opened a thread at XWiki project where a maintainer says that he don’t understand “that the server take into account the sent organization if it does not know the concept of organization.”

And as far as I know, there is no way to add an organization into a self hosted instance of SonarQube.

Of course I have tried to add -Dsonar.organization= but in doesn’t unset the property, just set it as empty string. So I’m kind of stuck.

How can we achieve this ?


Indeed, the concept of organizations is not present in SonarQube. Typically we would reccomend just… removing sonar.organization from the pom.xml file, but I understand this might not be your own repo you’re scanning. :slight_smile:

You can probably set -Dsonar.organization=default-organization. This is more undocumented behavior than anything else, but it works for me in SonarQube v8.0.

Best regards,


1 Like

You got it
It seems to work. Now I have another problem but I will create a new post for it.