eclipse-plugineclipse-rcpp2

Resolving p2 dependencies in an Eclipse product


I am trying to install a feature (com.iar.cdt.arm.sdk.feature) in an Eclipse product (MCUXpressoIDE). The feature has a requirement on another feature (org.eclipse.emf.feature, with no version specified) which is part of the product itself (in version 2.19, as org.eclipse.emf.common.feature). Despite this, p2 is trying to fetch the same feature from one of the available update sites, resulting in a conflict and installation error.

Does p2 consider the product itself as a source for needed features, in addition to the update sites? If not, why?

EDIT: It does, see the accepted answer

The original installation exception follows:

 Cannot complete the install because of a conflicting dependency.
 Software being installed: IAR Toolchain for ARM (8.30.x - 8.50.x) 8.1.0.202007252323 (com.iar.cdt.arm.sdk.feature.feature.group 8.1.0.202007252323)
 Software currently installed: MCUXpresso IDE 11.2.0.202007071544 (MCUXpressoIDE 11.2.0.202007071544)
 Only one of the following can be installed at once:
 EMF Common 2.17.0.v20190920-0401 (org.eclipse.emf.common.feature.jar 2.17.0.v20190920-0401)
 EMF Common 2.19.0.v20200324-0932 (org.eclipse.emf.common.feature.jar 2.19.0.v20200324-0932)
 Cannot satisfy dependency:
 From: MCUXpresso IDE 11.2.0.202007071544 (MCUXpressoIDE 11.2.0.202007071544)
 To: org.eclipse.equinox.p2.iu; org.eclipse.emf.common.feature.group [2.19.0.v20200324-0932,2.19.0.v20200324-0932]
 Cannot satisfy dependency:
 From: IAR Toolchain for ARM (8.30.x - 8.50.x) 8.1.0.202007252323 (com.iar.cdt.arm.sdk.feature.feature.group 8.1.0.202007252323)
 To: org.eclipse.equinox.p2.iu; org.eclipse.emf.feature.group 0.0.0
 Cannot satisfy dependency:
 From: EMF Common 2.17.0.v20190920-0401 (org.eclipse.emf.common.feature.group 2.17.0.v20190920-0401)
 To: org.eclipse.equinox.p2.iu; org.eclipse.emf.common.feature.jar [2.17.0.v20190920-0401,2.17.0.v20190920-0401]
 Cannot satisfy dependency:
 From: EMF Common 2.19.0.v20200324-0932 (org.eclipse.emf.common.feature.group 2.19.0.v20200324-0932)
 To: org.eclipse.equinox.p2.iu; org.eclipse.emf.common.feature.jar [2.19.0.v20200324-0932,2.19.0.v20200324-0932]
 Cannot satisfy dependency:
 From: EMF - Eclipse Modeling Framework Runtime and Tools 2.20.0.v20191028-0905 (org.eclipse.emf.feature.group 2.20.0.v20191028-0905)
 To: org.eclipse.equinox.p2.iu; org.eclipse.emf.common.feature.group [2.17.0.v20190920-0401,2.17.0.v20190920-0401]

Solution

  • According to the installation exception, the IAR Toolchain for ARM (com.iar.cdt.arm.sdk.feature.feature.group) requires EMF (org.eclipse.emf.feature.group) of any version (0.0.0). The in the update sites available EMF is 2.20 which comes with EMF Common 2.17. But this conflicts with EMF Common 2.19 that is a fixed part of the MCUXpresso IDE product (MCUXpressoIDE).

    To solve this conflict, make available EMF 2.22 using EMF Common 2.19 by adding the following update site: https://download.eclipse.org/modeling/emf/emf/builds/release/2.22