You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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:
    1. 打开 Window > Preferences > Plug-in Development > Target Platform
    2. 选中当前使用的目标平台,点击右侧的Edit按钮
    3. 在弹出的编辑窗口切换到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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.18 12:27:07