Overview

WhiteSource Advise for Eclipse is a powerful software plug-in for the Eclipse IDE. It makes critical information available directly from within the IDE, and provides developers with information on security vulnerabilities reported for their open-source libraries in their projects. It leverages WhiteSource’s vast database and analysis power, and its automatic vulnerability checking facilitates quick remediation.

WhiteSource Advise for Eclipse's intuitive design provides the following:

WhiteSource Advise for Eclipse works quickly and unobtrusively in the background, enabling earlier vulnerability awareness, better vulnerability handling, and faster vulnerability remediation.

Support for Languages and Package Managers

WhiteSource Advise for Eclipse supports Java with the Maven and/or Gradle package managers.

NOTE: Gradle Kotlin projects are not supported in WhiteSource Advise.

Prerequisites

Ensure the following:

Supported Versions

The plugin supports the following Eclipse IDE versions:

Installing WhiteSource Advise

To install WhiteSource Advise, do as follows:

NOTE: If you previously installed the WhiteSource Advise plugin using the dropin folder, you must delete the org.whitesource.eclipse.plugin jar file from the dropin folder before performing this procedure.

  1. Start Eclipse, specifying the preferred workspace.

  2. From the menu bar, select Help > Eclipse Marketplace. The Eclipse Marketplace screen is displayed.

  3. In the Search tab, in the Search box, enter whitesource and press Enter from your keyboard. The WhiteSource Advise plugin information is displayed.

  4. Click Install

  5. Read and accept the license agreement's terms, and click Finish.

  6. In the pop-up message, click Restart Now.

Activating WhiteSource Advise

To activate WhiteSource Advise, do as follows:

  1. Start Eclipse, specifying the preferred workspace.

  2. From the menu bar, select WhiteSource > WhiteSource Advise Login. The Welcome to WhiteSource Advise dialog box is displayed.

  3. In email, enter your organizational email (the email domain must be licensed to use Advise).

  4. In License Key, enter your license key (See here for more information on how to obtain a license key). 

  5. Click Login.

NOTE: If you check Remember License Key, the login credentials will be stored in your Eclipse Secure Storage. Once stored, the WhiteSource Advise login credentials will be used for all Eclipse workspaces and all instances of Eclipse running on your computer. If you want to log in to WhiteSource Advise using a different set of credentials, select WhiteSource > WhiteSource Advise Login, click Login with Different Credentials.

Configuring WhiteSource Advise

Changes made to the WhiteSource settings will only apply after running the next scan.

To configure WhiteSource Advise, do as follows:

  1. From the menu bar, select Window > Preferences. The Preferences screen is displayed.

  2. Select WhiteSource.

  3. In the WhiteSource screen, review the options and modify if necessary. See here for a list of all options.

  4. Click Apply and Close.

Options Table

Option

Description

Default Setting

Only show issues for direct dependencies

When enabled, WhiteSource Advise will only return vulnerabilities for direct dependencies defined in your dependency file.

Unselected (not checked)

Minimum vulnerability severity level

Alert only on detected vulnerabilities satisfying a Low/Medium/High minimum severity level.

  • Low - Vulnerability alerts for all severities (Low, Medium, High) are displayed.

  • Medium- Vulnerability alerts only for Medium or High severities are displayed.

  • High - Vulnerability alerts only for High severities are displayed.

Low

Scanning Projects for Security Vulnerabilities

Automatically Scanning Projects

Once you have activated WhiteSource Advise, it automatically scans Maven/Gradle projects for open source security vulnerabilities whenever such projects are opened or built. The scan results are displayed in the Markers tab and a dedicated WhiteSource tab. 

If you do not want WhiteSource Advise to automatically scan your Maven/Gradle projects, you can disable this functionality. Do as follows:

  1. From the Project Explorer pane, right-click a project and select Properties. The Properties dialog box is displayed.

  2. In the Properties dialog box's Builders pane, clear WhiteSource Builder.

  3. Select Apply and Close. WhiteSource Advise for Eclipse will no longer automatically scan your Maven/Gradle projects for vulnerabilities.

Manually Scanning Projects 

To manually scan a project, do as follows:

  1. Select one or multiple projects in Eclipse.

  2. Do one of the following options:

Reviewing Scan Results

Scan results are displayed in the following areas:

Refer to the following sections.

Reviewing Analysis Results in the Markers Tab

The Markers tab lists information regarding Eclipse projects including problems and tasks, and important details on WhiteSource vulnerability scan results. Those results are categorized and grouped according to their severity (High, Medium and Low) under designated rows (e.g., WhiteSource Scan – High Severity) that can be expanded and collapsed to display more information on each vulnerability.

Scan results are featured in the following Markers columns:

NOTE: Hovering the mouse pointer over a long entry will display its details in an informative tooltip.

To review scan results in the Markers tab, do as follows: 

  1. Click the Markers tab, if it is not the active tab.

  2. Expand a severity category to view a detailed listing of all the vulnerabilities grouped within.

  3. In the expanded severity category, hover with the mouse over a given vulnerability to display additional information.

 NOTE: Additional security vulnerability details are found in the WhiteSource tab, in the Description column.

Reviewing Analysis Results in the WhiteSource tab

The WhiteSource tab expands on the vulnerability details listed in the Markers tab. The tab features the following columns:

To sort the displayed WhiteSource Advise results based on a preferred column, click the corresponding column header.

Additionally, the tab lists general statistics regarding the scan, as follows:

NOTE: These statistics concern the plugin's most recent scan only.

Displaying Vulnerability Information for a Scanned Component

WhiteSource Advise enables you to view valuable information on open source security vulnerabilities and enables you to easily highlight code regarding such vulnerabilities. This section describes how WhiteSource Advise can be used to display security vulnerability details for a project, in Eclipse's main code view.

Click the WhiteSource tab and do as follows:

Restoring the WhiteSource Tab

If the WhiteSource tab is closed, you can re-open it as follows:

  1. From the menu bar, select Window > Show View > Other. The Show View dialog box is displayed.

  2. Open the WhiteSource folder, and select WhiteSource

Viewing General Plugin Information 

To view version information about WhiteSource Advise, do as follows:

The WhiteSource Advise screen displays information about the Advise plugin's version and copyright, along with links for Privacy policy and Terms and Conditions.

Upgrading WhiteSource Advise 

To upgrade the WhiteSource Advise plugin, do as follows:

  1. Start Eclipse, specifying the preferred workspace.

  2. From the menu bar, select Help > Eclipse Marketplace. The Eclipse Marketplace screen is displayed.

  3. Click the Installed tab.

  4. Scroll for the WhiteSource Advise plugin.

  5. Click Update.

  6. Read and accept the license agreement's terms, and click Finish.

  7. In the popup message, click Restart Now.

Uninstalling WhiteSource Advise

Uninstalling WhiteSource Advise will remove the plugin and its components only from the current workspace. 

To uninstall from the current workspace: 

  1. From the menu bar, select Help > About Eclipse IDE > Installation Details. The Eclipse IDE Installation Details dialog box is displayed.

  2. In the filter text field at the top, enter whitesource, and click Enter.

  3. Select WhiteSource Advise.

  4. At the bottom, click Uninstall. The Uninstall Details dialog box is displayed. 

  5. Review and click Finish.

  6. If you are prompted to restart, do so.

In order to remove WhiteSource Advise from additional workspaces, do as follows per workspace:

  1. In Eclipse, open the workspace.

  2. Install WhiteSource Advise for that workspace, as per the instructions above. 

  3. Uninstall WhiteSource Advise for that workspace, as per the instructions above. This will remove all the relevant WhiteSource components from that workspace.

Known Issues

Installing the Plugin on Multiple Eclipse Versions

The Eclipse plugin will not work for users who first installed it on a 2019-xx version of the Eclipse IDE, and who then installed the plugin on a 2018-xx (or earlier) version of the Eclipse IDE. This problem exists due to the following circumstances:

In such circumstances, users might receive a corresponding error message stating that Eclipse “couldn't store authentication details”.