If you use m2eclipse, then select component "Sonar Integration for M2Eclipse (Optional)" too.

Click Next. Eclipse will then check to see if there are any issues which would prevent a successful installation.

Click Finish to begin the installation process. Eclipse will then download and install the necessary components.

Once the installation process is finished, Eclipse will ask you if you want to restart the IDE. It's strongly recommended that you restart IDE.

Usage/Features

Global Configuration

In plugin configuration (Window-> Preferences-> Sonar) you can :

Select the default sonar server

Add, edit or remove a sonar server configuration

Configure the sonar console

Server Configuration

In server configuration you can specify:

URL of your Sonar server

Username and password for access to it

Icon

Settings will be stored in file .serverlist in ${workspace}\.metadata\.plugins\org.sonar.ide.eclipse\ directory. Don't allow other people to see this file, since it contains your credentials in plain-text.

Project Configuration

In plugin configuration for project you can specify:

URL of your Sonar server

groupId and artifactId of your project

Integration with m2eclipse

Open any Mavenized project and some parameters (groupId, artifactId) will be taken from pom.xml.

Auto configure project without m2eclipse

TBA

Violations

Open any Java-file and see violations from Sonar as markers in source code.

Icon

Source code from Sonar server may not match source code from your working copy, so we are using some heuristic algorithm to determine line with violation.