gpt4 book ai didi

java - 由于 org.eclipse.e4.ui.workbench.swt 中的使用约束冲突, bundle 未解决

转载 作者:行者123 更新时间:2023-12-02 10:24:24 24 4
gpt4 key购买 nike

我正在尝试构建我的 RCP 插件,但在尝试运行 tycho Surefire 测试时遇到此错误 -

Bundle was not resolved because of a uses contraint violation. org.osgi.service.resolver.ResolutionException: Uses constraint violation. Unable to resolve resource org.eclipse.e4.ui.workbench.swt [osgi.identity; osgi.identity="org.eclipse.e4.ui.workbench.swt"; type="osgi.bundle"; version:Version="0.14.1.v20160829-0832"; singleton:="true"] because it is exposed to package 'org.osgi.service.component' from resources org.eclipse.osgi.services [osgi.identity; osgi.identity="org.eclipse.osgi.services"; type="osgi.bundle"; version:Version="3.6.0.v20170116-1355"] and osgi.enterprise [osgi.identity; osgi.identity="osgi.enterprise"; type="osgi.bundle"; version:Version="4.2.0.v201108120515"] via two dependency chains.

Chain 1:
org.eclipse.e4.ui.workbench.swt [osgi.identity; osgi.identity="org.eclipse.e4.ui.workbench.swt"; type="osgi.bundle"; version:Version="0.14.1.v20160829-0832"; singleton:="true"]
require: (&(osgi.wiring.bundle=org.eclipse.osgi.services)(&(bundle-version>=3.2.0)(!(bundle-version>=4.0.0))))
|
provide: osgi.wiring.bundle: org.eclipse.osgi.services
org.eclipse.osgi.services [osgi.identity; osgi.identity="org.eclipse.osgi.services"; type="osgi.bundle"; version:Version="3.6.0.v20170116-1355"]

Chain 2:
org.eclipse.e4.ui.workbench.swt [osgi.identity; osgi.identity="org.eclipse.e4.ui.workbench.swt"; type="osgi.bundle"; version:Version="0.14.1.v20160829-0832"; singleton:="true"]
require: (&(osgi.extender=osgi.component)(version>=1.2)(!(version>=2.0)))
|
provide: osgi.extender; osgi.extender="osgi.component"; version:Version="1.2.0"; uses:="org.osgi.service.component"
org.eclipse.equinox.ds [osgi.identity; osgi.identity="org.eclipse.equinox.ds"; type="osgi.bundle"; version:Version="1.4.400.v20160226-2036"; singleton:="true"]
import: (&(osgi.wiring.package=org.osgi.service.component)(&(version>=1.1.0)(!(version>=1.3.0))))
|
export: osgi.wiring.package: org.osgi.service.component
osgi.enterprise [osgi.identity; osgi.identity="osgi.enterprise"; type="osgi.bundle"; version:Version="4.2.0.v201108120515"]

最佳答案

看起来您已经将 osgi.enterprise 包安装到了 OSGi 框架中。该 bundle 不应在运行时使用 - 它是一个规范聚合 bundle ,仅在编译时使用。

只需从运行时中删除该 bundle 就可以了。

关于java - 由于 org.eclipse.e4.ui.workbench.swt 中的使用约束冲突, bundle 未解决,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54086583/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com