| Table of Contents |
| To use Sonar in Eclipse on a project, it is required that the project has been first analyzed in a standard way by Sonar. |
Setting Sonar Servers
Sonar Eclipse is pre-configured to access a local Sonar server listening on http://localhost:9000/. To use another address, you first need to define this server by using the Eclipse global Preferences window:

Linking Projects to Sonar Servers
Once the Sonar server(s) is(are) defined, the next step is to link your Eclipse projects with projects defined and analyzed on Sonar server(s). This linkage operation can be done by right-clicking on the the project in the "Package explorer", and then by choosing "Configure -> Associate with Sonar...":


In some cases the Eclipse project may not be automatically associated to a Sonar project. If that happens, you need to manually enter the groupId and the artifactId of the Sonar project. |
Unlinking a Project from Sonar Server
This operation can be done by right-clicking on the the project in the "Package explorer", and then by choosing "Configure -> Remove Sonar Nature":

Configuring Mylin to deal with Reviews
A Sonar Mylyn connector allows to track reviews.
Creating a Sonar Task Repository
To start using this feature, a new Sonar task repository has to be created (see the Mylyn documentation page for more information):

| Validate Settings limitation Validate Settings returns Authentication credentials are valid even if you have not entered correct credentials (Username/Password). So, make sure to correctly deal with your credentials otherwise you will not be able to retrieve any review. |
You new repository should now appear in the Task Repositories view:

Creating a Query
To browse the reviews, you can create as many queries as you wish:

Here's an example of a query that retrieves all the reviews assigned to you on every project:

The reviews should now appear in the Task List view:

You are now all set with configuration and you can start using Sonar Eclipse.

