Open alixwar opened 6 years ago
Hi,
Yes, I use this configuration for my projects org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar
Show here https://github.com/gabrie-allaigre/sonar-gitlab-plugin/blob/master/.gitlab-ci.yml
Hi,
I was thinking about the code examples in README.md:
mvn --batch-mode verify sonar:sonar ...
In https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Maven
mvn clean verify sonar:sonar
# In some situation you may want to run sonar:sonar goal as a dedicated step. Be sure to use install as first step for multi-module projects
mvn clean install
mvn sonar:sonar
# Specify the version of sonar-maven-plugin instead of using the latest. See also 'How to Fix Version of Maven Plugin' below.
mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar
sonar:sonar work normally
Instead of:
mvn sonar:sonar
do:
mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar
Source: https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Maven