Setting Sonar Servers
Go to Window > Preferences > Sonar > Servers.
Sonar Eclipse is pre-configured to access a local Sonar server listening on http://localhost:9000/. You can edit this server, delete it or add a new one.
Linking a Project to One Analyzed on a Sonar Server
Linking for the first time
Once the Sonar server is defined, the next step is to link your Eclipse projects with projects defined and analyzed on this Sonar server.
To do so, right-click on the project in the Project Explorer, and then Configure > Associate with Sonar...:
In the Sonar project text field, start typing the name of the project and select it in the list box:
Click on Finish. Your project is now associated to one analyzed on your Sonar server. This means that you'll be able to see existing issues for the project in Eclipse, and that when you run a local analysis in Eclipse, it will use the rule profile the project is assigned to in Sonar rather than the language's default profile.
At any time, it is possible to change the project association.
To do so, right-click on the project in the Project Explorer, and then Sonar > Change project association...:
Unlinking a Project
To do so, right-click on the project in the Project Explorer, and then Sonar > Remove Sonar Nature:
Severity of Sonar Markers
You can set the severity of Sonar markers and Sonar markers for new violations by going to Window > Preferences > Sonar.
You are now all set with configuration and you can start using Sonar Eclipse.