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

Compatibility Matrix

Plugin

0.1-SNAPSHOT

Sonar

2.0.1+

Eclipse

3.5+

Installation

To install this plugin in the Eclipse IDE:

  1. Select Help -> Install New Software. This should display the "Install" dialog.
  2. Paste the Update Site URL into the field named "Work with:" and press Enter. Pressing Enter should cause Eclipse to update list of available plugins and components.
  3. Choose the component listed under Sonar: "Sonar Integration for Eclipse (Required)".
  4. If you use m2eclipse, then select component "Sonar Integration for M2Eclipse (Optional)" too.
  5. Click Next. Eclipse will then check to see if there are any issues which would prevent a successful installation.
  6. Click Finish to begin the installation process. Eclipse will then download and install the necessary components.
  7. Once the installation process is finished, Eclipse will ask you if you want to restart the IDE. It's strongly recommended that you restart IDE.

Usage/Features

Global Configuration

In plugin configuration (Window-> Preferences-> Sonar) you can :

  • Select the default sonar server
  • Add, edit or remove a sonar server configuration
  • Configure the sonar console

Server Configuration

In server configuration you can specify:

  • URL of your Sonar server
  • Username and password for access to it

Settings will be stored in file .serverlist in ${workspace}\.metadata\.plugins\org.sonar.ide.eclipse\ directory. Don't allow other people to see this file, since it contains your credentials in plain-text.

Project Configuration

In plugin configuration for project you can specify:

  • URL of your Sonar server
  • groupId and artifactId of your project

Integration with m2eclipse

Open any Mavenized project and some parameters (groupId, artifactId) will be taken from pom.xml.

Auto configure project without m2eclipse

TBA

Violations

Open any Java-file and see violations from Sonar as markers in source code.

Source code from Sonar server may not match source code from your working copy, so we are using some heuristic algorithm to determine line with violation.

Sonar Server Navigator

TBA

Sonar Console View

TBA

Changelog

Release 0.2

Release 0.1

Labels
  • None