Sonar Integration with Maven
In my previous blog , we have already seen how to setup SonarQube server on Windows 10. We have also seen that how can we generate sonar report using sonar-scanner . In this blog, I’ll show you how to generate sonar report by configuring sonar dependency to maven project. Steps to setup sonar in Maven We have to configure pluginManagement and Profile for Sonar in pom.xml file Add below pluginManagement dependency to your pom.xml <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</version> </plugin> <plugin> <groupId>org.sonarsource.scanner.maven</groupId> ...