SonarQube Maven Project Configuration

 

1.Install & Configure Apache Maven in your local system

 

2.Go to Maven conf folder change the settings.xml by adding sonar details

 

 

 

3.Chose the Java Maven Project for Analyzing Source Code. Ex:MavenWeb as below

 

4.Open pom.xml & Configure sonar plugin as below

 

 

5.Open the command prompt, navigate to your maven project, and start giving the following commands

mvn clean verify sonar:sonar

 

 

6.open http://localhost:9000/projects it will display the analysis report