Versions Compared


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

Table of Contents

To fully take full advantage of SonarQube in Eclipse, it is recommended that your project is already being be 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 interfaceRegular analysis allows the Eclipse plugin to distinguish between existing issues and any new ones you introduced.

If your project is not already under analysis, you'll need to declare it through the SonarQube web interface. 

Once your project exists in SonarQube, you're ready to get started with SonarQube in Eclipse.

Setting 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 oneones.Image Removed

The user you set to access the server has to be granted the Execute Preview Analysis permission.
Image Added

Linking a Project to One Analyzed on a SonarQube Server


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

Image RemovedImage Added

In the 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.


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

Image RemovedImage Added

Unlinking a Project

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

Image RemovedImage Added


Advanced Configuration

Severity of SonarQube Markers

You can set the severity of SonarQube markers and SonarQube markers for new violations by going to Additional settings (such as markers for new issues) are available through Window > Preferences > SonarQube.:

 Image Added

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