Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
titleTable of Contents

Table of Contents

To fully take advantage of SonarQube in Eclipse, it is recommended that your project is already being analyzed on a regular basis by SonarQube. Indeed, you'll get features such as only displaying new issues that you have introduced.

However, if you want to give SonarQube in Eclipse a quick try, you just have to first declare your project through the SonarQube web interface.


Go to Window > Preferences > Sonar SonarQube > Servers.

SonarQube in Eclipse is pre-configured to access a local SonarQube server listening on http://localhost:9000/. You can edit this server, delete it or add a new one.
Image RemovedImage Added

Linking a Project to One Analyzed on a SonarQube Server


Once the SonarQube server is defined, the next step is to link your Eclipse projects project with projects a project defined and analyzed on this SonarQube server.

To do so, right-click on the project in the Project Explorer, and then Configure > Associate with SonarSonarQube...:

Image RemovedImage Added

In the Sonar SonarQube project text field, start typing the name of the project and select it in the list box:

Image RemovedImage Added

Click on Finish. Your project is now associated to one analyzed on your SonarQube 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 SonarQube rather than the language's default profile.

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


To do so, right-click on the project in the Project Explorer, and then Sonar SonarQube > Change project association...:

Image RemovedImage Added

Unlinking a Project

To do so, right-click on the project in the Project Explorer, and then Sonar SonarQube > Remove Sonar SonarQube Nature:

Image RemovedImage Added


Advanced Configuration


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


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