解决 Eclipse 产品中的 p2 依赖关系

Resolving p2 dependencies in an Eclipse product

我正在尝试在 Eclipse 产品 (MCUXpressoIDE) 中安装功能部件 (com.iar.cdt.arm.sdk.feature)。 该功能对另一个功能(org.eclipse.emf.feature,未指定版本)有要求,该功能是产品本身的一部分(在版本 2.19 中,如 org.eclipse.emf.common.feature)。尽管如此,p2 仍试图从可用的更新站点之一获取相同的功能,从而导致冲突和安装错误。

除了更新站点之外,p2 是否将产品本身视为所需功能的来源?如果不是,为什么?

编辑:确实如此,请参阅

原安装异常如下:

 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]

根据安装异常,IAR Toolchain for ARM (com.iar.cdt.arm.sdk.feature.feature.group) 需要EMF (org.eclipse.emf.feature.group) 任何版本 (0.0.0)。更新站点 available EMF 是 2.20with EMF Common 2.17 。但是这个 EMF Common 2.19 有冲突,后者是 [ 的固定部分=27=]MCUXpresso IDE 产品 (MCUXpressoIDE).

要解决此冲突,请使用 EMF Common[=37] 提供 EMF 2.22 =] 2.19 通过添加以下更新站点: https://download.eclipse.org/modeling/emf/emf/builds/release/2.22