Eclipse Marketplace无AEM插件,手动安装遇依赖错误求助
问题描述
使用Eclipse 2022-12(4.26.0)时,AEM插件未在Eclipse Marketplace显示,通过「Install New Software」手动安装时报错:
Cannot complete the install because one or more required items could not be found.
Software being installed: AEM Developer Tools 1.3.0 (com.adobe.granite.ide.feature.feature.group 1.3.0)
Missing requirement: Sling IDE Eclipse Core 1.2.2 (org.apache.sling.ide.eclipse-core 1.2.2) requires 'osgi.bundle; org.eclipse.equinox.ds 1.2.1' but it could not be found
Cannot satisfy dependency:
From: AEM IDE Tools: UI-Extensions 1.3.0 (com.adobe.granite.ide.eclipse-ui 1.3.0)
To: osgi.bundle; org.apache.sling.ide.eclipse-core [1.0.0,2.0.0)
Cannot satisfy dependency:
From: AEM Developer Tools 1.3.0 (com.adobe.granite.ide.feature.feature.group 1.3.0)
To: org.eclipse.equinox.p2.iu; com.adobe.granite.ide.eclipse-ui [1.3.0,1.3.0]
错误原因
AEM插件依赖的Sling IDE Core组件需要org.eclipse.equinox.ds 1.2.1,但当前Eclipse环境未安装该组件,导致依赖链断裂。
解决步骤
1. 安装缺失的Equinox DS组件
- 打开Eclipse,依次进入「Help > About Eclipse IDE > Installation Details > Installed Software」
- 在搜索框输入
Equinox DS,确认是否存在版本1.2.1及以上的组件 - 若未找到,进入「Help > Install New Software」,添加对应Eclipse 2022-12版本的官方更新源
- 在更新源列表中找到「Eclipse Equinox」分类下的「Equinox DS」组件,勾选后完成安装,安装完成后重启Eclipse
2. 重新安装AEM插件
- 再次打开「Install New Software」,添加AEM Developer Tools的更新源
- 勾选「AEM Developer Tools」组件,执行安装流程,此时依赖已满足,可完成安装
内容的提问来源于stack exchange,提问作者ezhil

