Java Project SonarQube Tool Configuration

Here we will see how to configure sonarqube tool for java project.We know that Sonarqube is an open source Platform used by development teams to manage source code quality. Sonar has been developed with a main objective in mind: make code quality management accessible to everyone with minimal effort. SonarQube is a web-based application. Rules, alerts, thresholds, exclusions, settings… can be configured online

Prerequisites for SonarQube Tool Configuration

  1. SonarQube Tool.
  2. Maven Build Tool.
  3. Java Project.
  4. Cobertura,pmd maven plugins.
  5. Database for Sonar Reports

Download Sonarqube from this link.

Following steps are involved in the sonarqube configuration:-

  1. Configure Sonar Properties.

Sonar comes with h2 database by default but it is recommended only for testing or evaluation purpose. And not recommended for higher environments. Open the sonar configuration file from below location. And Configure your own database connections in this file.

2.  Edit the settings.xml file, located in $MAVEN_HOME/conf or ~/.m2, to set the plugin prefix and optionally the SonarQube server URL.


3. Or Update your POM.xml with sonar configuration.



About mohan

This is Mohan Jayapalan author of TechPages Blog.I am a part time blogger and Currently working for private Software Concern.

© Copyright 2010-2016 · All Rights Reserved · Powered by WordPress ·