【问题标题】:Why is my JUnit Plugin tests failing with unresolved bundles errors?为什么我的 JUnit 插件测试因未解决的捆绑错误而失败?
【发布时间】:2011-08-18 12:53:39
【问题描述】:

我正在尝试让我的 JUnit 插件测试启动器为我的 PDE 项目运行。它以前可以工作,但我更改了我的 OSGi 捆绑包的一些名称,现在它失败了:

!ENTRY org.eclipse.osgi 2 0 2011-08-09 15:43:59.904
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-08-09 15:43:59.904
!MESSAGE Bundle me.gladwell.android.tools_0.1.1.qualifier [76] was not resolved.
!SUBENTRY 2 me.gladwell.android.tools 2 0 2011-08-09 15:43:59.904
!MESSAGE Package uses conflict: Require-Bundle: org.eclipse.persistence.moxy; bundle-version="2.1.0"
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-08-09 15:43:59.904
!MESSAGE Bundle me.gladwell.eclipse.m2e.android_0.3.1.qualifier [77] was not resolved.
!SUBENTRY 2 me.gladwell.eclipse.m2e.android 2 0 2011-08-09 15:43:59.905
!MESSAGE Missing required bundle me.gladwell.android.tools_0.1.1.
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-08-09 15:43:59.905
!MESSAGE Bundle me.gladwell.eclipse.m2e.android.test_0.3.1.qualifier [78] was not resolved.
!SUBENTRY 2 me.gladwell.eclipse.m2e.android.test 2 0 2011-08-09 15:43:59.905
!MESSAGE Missing required bundle me.gladwell.eclipse.m2e.android_0.0.0.
!SUBENTRY 2 me.gladwell.eclipse.m2e.android.test 2 0 2011-08-09 15:43:59.905
!MESSAGE Missing required bundle me.gladwell.android.tools_0.0.0.

请看full error log

我不确定如何诊断这些消息以及它们可能涉及的位置/问题。这些测试在我的命令行 Tycho-Maven 构建中成功运行,并且项目在 Eclipse 中编译没有错误。我在my launcher 的“启动方式”选择框中选择了“所有工作区并启用目标插件”选项。

知道为什么我会收到这些错误消息吗?

【问题讨论】:

  • 在插件选项卡的启动配置中,您选择了哪种类型的“启动方式”?你能和我们分享.launch吗?

标签: eclipse eclipse-plugin tycho eclipse-pde


【解决方案1】:

如果您正在重用启动配置,并且您已经更改了插件元数据的任何内容(例如它们的名称),您需要确保它正在“清理配置空间”。您可以在启动器的“配置”选项卡上找到此选项。

【讨论】:

  • 谢谢,但这绝对是经过检查的,测试仍然失败。我还删除了单元测试创​​建的临时工作区,但仍然收到相同的错误消息。
猜你喜欢
  • 2011-04-24
  • 2012-05-27
  • 2019-05-01
  • 2011-07-23
  • 1970-01-01
  • 1970-01-01
  • 2020-03-23
  • 2015-02-26
  • 1970-01-01
相关资源
最近更新 更多