Sonar is open platform to manage code quality - http://docs.codehaus.org/ display/SONAR/Documentation
Below we detail steps to quickly integrate SonarQube with eclipse
1. Download SonarQube from http://www.sonarqube.org/ downloads/
SonarQube 5.1.1
2. Unzip in some directory and execute the batch file StartSonar.bat from located at
[Your Sonar Directory]\bin\windows-x86-64
(Eg: D:\sonar-5.1.1\bin\windows- x86-64)
3. See sonar server running at http://localhost:9000
4. Now in your Eclipse, install Sonar server plugin
Go to Help > Install New Software... This should display the Install dialog box.
Paste the Update Site URL (http://downloads.sonarsource.com/eclipse/eclipse/) into the field Work with and press Enter.
Select Sonar Java and Install
5. Then in eclipse, do a regular build on your project. After the build is successful, on your Project select Run As --> Maven Build --> Execute the only goal sonar:sonar
(This would download lot of resources and would take time. Finally you should see the build as success.)
6. Now go to http:localhost:9000, do a refresh, you should be seeing your project in Projects category.
7. You can play around with dashboards and other settings by logging in as admin - password : admin
Sample below:
Below we detail steps to quickly integrate SonarQube with eclipse
1. Download SonarQube from http://www.sonarqube.org/
SonarQube 5.1.1
2. Unzip in some directory and execute the batch file StartSonar.bat from located at
[Your Sonar Directory]\bin\windows-x86-64
3. See sonar server running at http://localhost:9000
4. Now in your Eclipse, install Sonar server plugin
Go to Help > Install New Software... This should display the Install dialog box.
Paste the Update Site URL (http://downloads.sonarsource.com/eclipse/eclipse/) into the field Work with and press Enter.
Select Sonar Java and Install
5. Then in eclipse, do a regular build on your project. After the build is successful, on your Project select Run As --> Maven Build --> Execute the only goal sonar:sonar
(This would download lot of resources and would take time. Finally you should see the build as success.)
6. Now go to http:localhost:9000, do a refresh, you should be seeing your project in Projects category.
7. You can play around with dashboards and other settings by logging in as admin - password : admin
Sample below:
0 comments:
Post a Comment