简体   繁体   English

由于org.eclipse.e4.ui.workbench.swt中违反了使用约束,因此无法解决捆绑软件

[英]Bundle was not resolved because of a uses contraint violation in org.eclipse.e4.ui.workbench.swt

I'm trying to build my RCP plugins and I'm getting this error while trying to run tycho surefire tests- 我正在尝试构建我的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"]

It looks like you have installed the bundle osgi.enterprise into your OSGi Framework. 看来您已将软件包osgi.enterprise安装到OSGi Framework中。 That bundle should not be used at runtime -- it is a specification aggregation bundle that is intended for use only at compile-time. 该捆绑软件不应该在运行时使用-它是一个规范聚合捆绑软件,仅在编译时使用。

Just remove the bundle from your runtime and you should be fine. 只需从运行时中删除捆绑软件,就可以了。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Eclipse RCP 目标平台:Bundle 'org.eclipse.ui.views.properties.tabbed' 无法解析 - Eclipse RCP Target Platform: Bundle 'org.eclipse.ui.views.properties.tabbed' cannot be resolved 在 SWT 对话框中嵌入 org.eclipse.wst.sse.ui.StructuredTextEditor - embed org.eclipse.wst.sse.ui.StructuredTextEditor in SWT Dialog 无法创建选定的首选项页面。 自动激活包 org.eclipse.m2e.core.ui 时发生错误 (597) - Unable to create the selected preference page. An error occurred while automatically activating bundle org.eclipse.m2e.core.ui (597) 导入org.eclipse.ui.internal.ShowViewAction无法解析 - The import org.eclipse.ui.internal.ShowViewAction cannot be resolved NoClassDefFoundError org / eclipse / swt / SWTError - NoClassDefFoundError org/eclipse/swt/SWTError Eclipse:java.lang.RuntimeException:在注册表中找不到应用程序“ org.eclipse.ui.ide.workbench” - Eclipse: java.lang.RuntimeException: Application “org.eclipse.ui.ide.workbench” could not be found in the registry org.eclipse.ui.internal.e4.compatibility.ModeledPageLayout.addStandaloneView上的NullPointerException - NullPointerException at org.eclipse.ui.internal.e4.compatibility.ModeledPageLayout.addStandaloneView eclipse SWT中的org.eclipse.swt.widgets.Text验证装饰器 - org.eclipse.swt.widgets.Text validation decorator in eclipse SWT LinkageError - 加载约束冲突 - LinkageError - loading contraint violation 无法启动64位Windows版本的应用程序:org.eclipse.ui.workbench无效-> NoClassDefFound - Cannot launch 64 bit Windows version of application : org.eclipse.ui.workbench is invalid -> NoClassDefFound
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM