Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

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

Icon

SONARIDE-122:

Test connection returns Successfully connected! even if:

  • you have not entered correct credentials (Username/Password)
  • you have not entered any credentials at all and your Sonar server is configured with sonar.forceAuthentication=true
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 can start using Sonar Eclipse.

Icon

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.
For instance for the following Sonar project http://nemo.sonarsource.org/dashboard/index/org.codehaus.sonar-plugins:sonar-flex-plugin, the groupId is "org.codehaus.sonar-plugins" and the artifactId is "sonar-flex-plugin".

 

 

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":

  • No labels