tumblr counter

Eclipse Sonar Tutorial

Eclipse Sonar Tutorial

Eclipse Sonar Tutorial explains step by step details of installing and configuring Sonar plugin with eclipse. By using Sonar Eclipse Plugin, you can see various reports inside from your eclipse IDE.

How to configure Sonar plugin with eclipse?

SonarQube is an open source platform for Continuous integration and improving the code quality. It is entirely written in java and supported for other 25+ languages such as Java, C/C++, C#, PHP, Flex, Groovy, JavaScript, Python, PL/SQL, COBOL, etc, it is also used for Android Development

You can also configure Sonar without using Eclipse plugin. you can check SonarQube Tutorial

Note

If you interested on PMD Eclipse Plugin (another source code analysis tool), You can follow PMD Eclipse Tutorial

If you interested on Eclipse Checkstyle Tutorial (another code analysis tool), You can follow Eclipse Checkstyle Tutorial

If you interested on FindBugs Eclipse Plugin (another source code analysis tool), You can follow FindBugs In Eclipse Tutorial

Note

Eclipse Sonar Tutorial only works if you are created a sonar project and configured with sonar server, if not please follow SonarQube Tutorial first.

Sonar Eclipse Tutorial

You need to download

  1. Eclipse 3.7
  2. SonarQube 3.3

You can install the Sonar Eclipse plugin using Eclipse update manager from the following links

  1. http://dist.sonar-ide.codehaus.org/eclipse/

Sonar Eclipse Installation

For Installing Sonar Plugin from eclipse, select Help->Install New Software Then click add, then provide Name and Location according to the following screenshot

Sonar Eclipse Installation

Sonar Eclipse Plugin Installation

Then select the Sonar Java click next and accept the license details, it will install the Sonar

Sonar Eclipse Configuration

After install, you need to associate created sonar projects with eclipse (See the below screen shot)

Associate Sonar Eclipse Plugin

After that type Project name on the search box, it will popup with Created Sonar projects and click finish (See the below screen shot)

Sonar Eclipse Configuration

Now the project is associated with eclipse and you can view various reports inside eclipse (See the below screen shot)

Sonar Eclipse Report


SonarQube Eclipse Tutorial SonarQube Eclipse Plugin SonarQube Eclipse Installation SonarQube Eclipse Configuration SonarQube Eclipse Source Code Analysis How To Configure SonarQube Plugin With Eclipse Sonar Integration With Eclipse

3 Comments on "Eclipse Sonar Tutorial"
26.01.2014 20:33:29 Rosey
Thank you very much for sonar integration with eclipse tutorial, as it have good explanation with screenshots attached
27.01.2014 08:56:15 admin
@Rosey,

I am appreciate your feedback, thanks
06.02.2014 15:07:33 Donyboy
Thanks for the feedback. I appreciate that you'll be happy that we will be reading this.