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 51 Next »

Table of Contents


This page documents how to configure SonarQubeTM in Eclipse for versions 3.2+.

For versions prior to 3.2, browse this page.

To use SonarQubeTM in Eclipse on a project, it is required that the project has been first analyzed by SonarQubeTM.

Setting SonarQubeTM Servers

Go to Window > Preferences > Sonar > Servers.

SonarQubeTM in Eclipse is pre-configured to access a local SonarQubeTM 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 SonarQubeTM Server

Linking for the first time

Once the SonarQubeTM server is defined, the next step is to link your Eclipse projects with projects defined and analyzed on this SonarQubeTM 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 SonarQubeTM 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 SonarQubeTM rather than the language's default profile.

Automatic association for Maven projects

Note that for Maven projects, the association is performed automatically.

Changing linkage

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:


Advanced Configuration

Severity of SonarQubeTM Markers

You can set the severity of SonarQubeTM markers and SonarQubeTM markers for new violations by going to Window > Preferences > Sonar.


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

  • No labels