Tuesday, 4 November 2014

Learn N Share: Static Code analysis for java Maven project using ...

Learn N Share: Static Code analysis for java Maven project using ...: Static Code analysis for java Maven project using sonarqube . 1.        Sonarqube is an open source project and can be download from be...

Static Code analysis for java Maven project using sonarqube.


Static Code analysis for java Maven project using sonarqube.
1.       Sonarqube is an open source project and can be download from below location
2.       Extract the rar file to the choice of your location.
3.       By default sonarqube runs on port 9000. It can be changed at below location
Parameter to change-sonar.web.port
Sonar_home\conf\sonar.properties.
4.       Sonarqube can be started at below location based on your system OS
Sonar_home\bin
For instance in case of 64-bit windows use below directory
Sonar_home\bin\ windows-x86-64 and run SonarStart.Bat
5.       Run below Maven command from directory where your parent POM.xml is kept
mvn sonar:sonar
6.       Sonarqube console can be accessed at http://localhost:9000/  default username/password is admin/admin