Eclipse PDE Export构建eclipsePlugin时遇循环依赖错误求助
解决Eclipse PDE Export循环依赖错误(com.ibm.ecm.icn.plugin_2.0.3组件循环)
一、找到你要的设置选项(新版本Eclipse位置调整)
在Eclipse 4.32(2024-06)中,你提到的两个设置位置有变动:
- Allow for binary cycles in target platform:
- 打开
Window > Preferences > Plug-in Development > Target Platform - 选中当前使用的目标平台,点击右侧的Edit按钮
- 在弹出的编辑窗口切换到Environment标签页,勾选「Allow binary cycles」选项
- 打开
- Use class files compiled in the workspace:
- 全局设置:
Window > Preferences > Plug-in Development > Compilers,取消勾选该选项 - 项目级设置:右键目标项目 >
Properties > Plug-in Development > Compilers,取消勾选对应选项
- 全局设置:
二、其他针对性解决方案
如果上述设置无效,可尝试以下方法:
- 排查并调整依赖链:
打开Window > Show View > Other > Plug-in Development > Plug-in Dependencies视图,查看com.ibm.ecm.icn.plugin_2.0.3与其他组件的依赖关系,移除不必要的依赖,或把公共代码抽离为独立插件打破循环。 - 修改Ant构建脚本跳过循环检查:
在项目的build.xml中,给PDE导出任务添加allowBinaryCycles="true"属性,示例:
<pde.exportPlugins destination="${export.dir}" plugins="com.ibm.ecm.icn.plugin_2.0.3" useJARFormat="true" allowBinaryCycles="true" />
- 尝试适配旧版Eclipse:
新版本PDE对依赖检查更严格,可切换到项目适配的旧版本(如2022-09及更早),这类版本的设置位置更接近你最初查找的路径。 - 清理重建工作区:
执行Project > Clean清理所有项目,右键目标项目选择Plug-in Tools > Update Classpath,之后再尝试PDE导出操作。
内容的提问来源于stack exchange,提问作者Pasan
相关产品推荐
相关产品推荐

