Profiles and Sonarqube 9-9-community

I have a plugin in java to sonarqube for analyze yaml files.

My Issue is that I have 5 profiles with diferent rules. By default, sonarqube put one profile like default but when I run the test, I need to do it with other profile.

I tried with maven command, for example: mvn clean verify sonar:sonar -Dsonar.profile=“Profile3” but sonarqube analize with the Profile by default.

Any idea? Thank you so much.

Hey there.

It’s not possible to configure the Quality Profile used via an analysis parameter. You’ll need to set this for each project in the SonarQube UI.

1 Like

Thank you so much Colin.

I’m sad… We can execute de commannd mvn with the property -Dsonar.qualityProfile= for nothing… Not cool

Thank you so much for your answer!