Sunday, April 26, 2020

Failed to Update EclEmma Tool for Eclipse

I have the following Eclipse installed,

Eclipse IDE for Enterprise Java Developers.

Version: 2020-03 (4.15.0)
Build id: 20200313-1211

When I attempt to update Eclipse, I encountered the following error,

An error occurred while collecting items to be installed
session context was:(profile=C__Applications_eclipse_latest_eclipse, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.eclipse.eclemma.core,3.1.3.202003132300
No repository found containing: osgi.bundle,org.eclipse.eclemma.doc,3.1.3.202003132300
No repository found containing: osgi.bundle,org.eclipse.eclemma.ui,3.1.3.202003132300
No repository found containing: org.eclipse.update.feature,org.eclipse.eclemma.feature,3.1.3.202003132300

The solution to this problems is to update it via EclEmma's update channel at http://update.eclemma.org/. We can use the two methods to realize this solution,
  1. Update EclEmma via adding an Eclipse repository for EclEmma
    1. Click the "Help" menu
    2. Select the "Install New Software" submenu
    3. Click "Add" button to add a new repository
    4. In the popup windows, enter a name of the repository, e.g., EclEmma, and enter the URL, http://update.eclemma.org/
    5. Confirm it by clicking at the "Add" button on the popup window
  2. Update EclEmma via Eclipse Marketplace
    1. Click the "Help" menu
    2. Select the "Eclipse Marketplace" submenu
    3. Search "EclEmma" in the "Eclipse Marketplace"
    4. Eclipse should now show "EclEmma for Java Code Coverage" as "installed"
    5. Click at "installed", and then click at "update".