问题描述
我正在尝试在Eclipse产品(com.iar.cdt.arm.sdk.feature
)中安装功能(MCUXpressoIDE
)。
该功能对产品本身的另一功能(org.eclipse.emf.feature
,未指定版本)有要求(在版本2.19中,为org.eclipse.emf.common.feature
)。尽管如此,p2仍试图从一个可用的更新站点中获取相同的功能,从而导致冲突和安装错误。
除了更新站点之外,p2是否将产品本身视为所需功能的来源?如果没有,为什么?
编辑:确实如此,请参见accepted answer
原始安装例外如下:
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]
解决方法
根据安装例外, 用于ARM的IAR工具链 (com.iar.cdt.arm.sdk.feature.feature.group
)需要EMF (org.eclipse.emf.feature.group
)({0.0.0
)的任何版本。在更新站点中,可用的 EMF 是2.20 ,它随 EMM Common 2.17 一起提供。但这与 EMF Common 2.19 冲突,这是 MCUXpresso IDE 的固定部分>产品(MCUXpressoIDE
)。
要解决此冲突,请通过添加以下更新站点,使用 EMF Common 2.19 使用 EMF 2.22 :
https://download.eclipse.org/modeling/emf/emf/builds/release/2.22