Setting sonar profile together with sonar preview mode on maven command line
问题 I want to use a specific sonar profile with analysis mode preview for generating comments that go into our github pull requests. The default quality profile for the project includes minor and info level rules which will cause hundreds of extra comments (and literally thousands of github notification emails). So it has to be a quality profile specific to this purpose. Running the build like this: mvn sonar:sonar -Dsonar.profile.java=PRComments -Dsonar.analysis.mode=preview Fails with the