【发布时间】:2015-10-18 10:03:14
【问题描述】:
我有一个带有基于插件的产品配置的 eclipse 4 应用程序项目。所有必要的插件都添加到 .product 文件的依赖项选项卡中,并从此 .product 文件生成运行配置完美无缺。但是当将 .product 导出为 eclipse 产品时,它不起作用 - 原因可能是导出了一些插件的错误版本。
错误日志包含如下消息:
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.e4.ui.css.swt [24]
Unresolved requirement: Require-Bundle: org.eclipse.e4.ui.css.core; bundle-version="0.9.0"
-> Bundle-SymbolicName: org.eclipse.e4.ui.css.core; bundle-version="0.11.0.v20150511-1937"; singleton:="true"
org.eclipse.e4.ui.css.core [23]
Unresolved requirement: Require-Bundle: org.apache.batik.css; bundle-version="1.7.0"
at org.eclipse.osgi.container.Module.start(Module.java:434)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
问题是,在 /plugins/ 文件夹中,我只有 org.apache.batik.css 的 v1.6.0,无论我尝试什么,我都无法让 eclipse 导出 v1.7.0(但在运行配置本身中,我可以看到使用的是1.7.0)。
我尝试使用“依赖项”选项卡上的“属性...”按钮并将 1.7.0 指定为版本号 - 但也没有工作(依赖项旁边有一个小红色标记,但没有显示错误- 出口产品的行为保持不变)。
我在这里做错了什么吗?如何控制导出的插件版本?
【问题讨论】:
-
那个红色的 X 肯定是在告诉你有问题,问题视图中可能有一条消息。某处必须有 1.6.0 版本的插件 - 它在哪里?找到它可能会提示有关该问题。
标签: build osgi eclipse-rcp