Hi,
My goal is to add xwiki-platform
analysis to our own sonarqube instance (along with code coverage).
I’m able to build the project by following build instruction but still, I’m facing the following issue when invoking the sonar:sonar
goal
Caused by: org.sonarqube.ws.client.HttpException: Error 404 on
https://sonarqube.ow2.org/api/qualityprofiles/search.protobuf?defaults=true&organization=xwiki :
{"errors":[{"msg":"No organization with key 'xwiki'"}]}
(Notice that I’m using the settings.xml
provided in the build guide)
As far as I understand, in the parent POM at https://github.com/xwiki/xwiki-commons/blob/8e91e4db2a19e7ef5dd623cca76c290a2bf6da0b/pom.xml#L177 a sonar.organization
property is defined that a self-hosted instance of SonarQube cannot take into account as it is intended for SonarCloud usage only.
So I’m looking for tips in order not to have the property defined when invoking sonar:sonar
goal. Any idea ?
Thanks