Set Sonar Servers
Sonar Eclipse is pre-configured to access 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:
|Test connection limitation|
Test connection returns Successfully connected! even if:
So, make sure to correctly deal with your credentials otherwise you will face unexpected behaviors when linking projects to Sonar servers.
Link Projects to Sonar Servers
Once Sonar server is defined, the next step is to "link" Eclipse projects with projects defined and analysed in Sonar server(s). This linkage operation can be done by right-clicking on the the project into the "Package explorer", and then by choosing "Configure -> Associate with Sonar...":
You are now all set with configuration and you can start using Sonar Eclipse.
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.
If you get this unknown error message when trying to associate an Eclipse project with a Sonar project, make sure that you have entered correct credentials when setting the Sonar servers.
Unlink a Project from Sonar Server
This operation can be done by right-clicking on the the project into the "Package explorer", and then by choosing "Configure -> Remove Sonar Nature":