【问题标题】:Spring framework/Eclipse RCP integration with Blueprint GeminiSpring 框架/Eclipse RCP 与 Blueprint Gemini 的集成
【发布时间】:2012-01-12 13:17:41
【问题描述】:

我正在尝试将 Spring 框架集成到我的 Eclipse RCP 应用程序中。

我找不到有关如何将 Blueprint Gemini 集成到我的 RCP 应用程序中的相关文档。我只是将 Gemini jar 添加到我的 RCP 项目中吗?我想这还不够……那我该如何将 Gemini jars 添加为插件呢?如何正确启动扩展器?

谁能提供指导或指点?

在遵循 Francis Upton 的建议并使用 directory 为目标平台选择 jar 之后,我现在可以在运行中查看 org.eclipse.gemini.blueprint.extender配置。

但是我现在收到以下错误:

org.osgi.framework.BundleException: The bundle "org.eclipse.gemini.blueprint.extender_1.0.0.RELEASE [36]" could not be resolved. Reason: Missing Constraint: Import-Package: org.eclipse.gemini.blueprint; version="[1.0.0.RELEASE,1.0.0.RELEASE]"

【问题讨论】:

    标签: eclipse eclipse-rcp osgi spring-dm eclipse-gemini


    【解决方案1】:

    您应该能够将 Gemini 安装到您的目标平台中(您可以使用首选项 -> 插件开发 -> 目标平台来使用您的目标平台。

    一旦安装到目标平台,因为这些是 OSGi 包,您应该能够像其他任何东西一样引用它们(使用插件清单的 Dependencies 部分)。

    【讨论】:

    • 谢谢弗朗西斯,我仍然遇到的问题是,我在任何时候都看不到以下插件:org.eclipse.gemini.blueprint.extender 出现在我的目标中(依赖项)。
    • 添加目标平台时(也可以只添加新的目标平台),指定“目录”而不是默认的“安装”。使用“目录”将找到目录中实际存在的每个插件。可能是您的目标平台上没有正确安装该软件。
    • 我正在进步。我现在可以在运行配置的插件选项卡中看到 org.eclipse.gemini.blueprint.extender。我现在明白了:org.osgi.framework.BundleException: The bundle "org.eclipse.gemini.blueprint.extender_1.0.0.RELEASE [36]" could not be resolved. Reason: Missing Constraint: Import-Package: org.eclipse.gemini.blueprint; version="[1.0.0.RELEASE,1.0.0.RELEASE]"
    • 安装产品定义后,我能够摆脱上述异常。我现在还有其他错误,但它们与这个问题无关,所以我会提出另一个问题。再次感谢弗朗西斯。
    猜你喜欢
    • 2012-09-11
    • 1970-01-01
    • 2018-10-13
    • 2013-04-08
    • 2016-10-26
    • 2013-05-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多