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

Eclipse PDE Maven:兼容Maven的Eclipse工作台组件官方p2仓库URL查询

解决org.eclipse.ui.workbench的Maven兼容p2仓库配置问题

以下是可直接用于Maven pom.xml的Eclipse官方p2仓库,完全覆盖org.eclipse.ui.workbench及其所有子组件:

通用正式版仓库(推荐)

这个仓库会自动指向Eclipse最新的稳定发布版本,适合大多数场景:

<repositories>
    <repository>
        <id>eclipse-latest-releases</id>
        <url>https://download.eclipse.org/releases/latest/</url>
        <layout>p2</layout>
    </repository>
</repositories>

指定Eclipse版本的仓库

如果你需要绑定特定版本的Eclipse组件(比如锁定到2024-06版本),可以使用对应版本的发布仓库:

  • Eclipse 2024-06: https://download.eclipse.org/releases/2024-06/
  • Eclipse 2023-12: https://download.eclipse.org/releases/2023-12/
  • 其他版本可替换URL中的版本号(格式为YYYY-MM)

关键注意事项

  • 必须添加<layout>p2</layout>,否则Maven无法正确解析p2仓库的组件结构。
  • org.eclipse.ui.workbench属于Eclipse Platform UI模块,上述仓库包含其所有依赖的子组件(如org.eclipse.ui、org.eclipse.ui.forms等)。
  • 若需开发测试最新未发布组件,可使用夜间构建仓库(不建议生产环境):https://download.eclipse.org/eclipse/updates/4.31-I-builds/(版本号随Eclipse迭代更新)

内容的提问来源于stack exchange,提问作者EverNight

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.12 03:33:13