应用程序需要大量未使用的依赖项

Application needs a lot of unused dependencies

我有一个 Eclipe E4 应用程序。现在我将我的 IDE 环境升级到最新的 Eclipse Oxygen 版本。我还在 IDE.

安装了我的常规插件

当从 Eclipse 本身启动我自己的 E4 应用程序时,它提供了很多缺少的模块。但是那些我没有在我的应用程序中使用的模块,看起来它来自所有已安装的插件。

可以只在我的 E4 应用程序中包含所需的插件吗?现在我的应用程序中有 200 多个依赖项,其中大部分在我的 E4 应用程序中不需要。

启动应用程序时抛出错误,如下所示:

org.osgi.framework.BundleException: Could not resolve module: org.eclipse.mylyn.builds.ui [6341]
  Unresolved requirement: Require-Bundle: org.eclipse.mylyn.commons.repositories.ui; bundle-version="1.0.0"
    -> Bundle-SymbolicName: org.eclipse.mylyn.commons.repositories.ui; bundle-version="1.15.0.v20170411-1844"; singleton:="true"
       org.eclipse.mylyn.commons.repositories.ui [6350]
         Unresolved requirement: Require-Bundle: org.eclipse.mylyn.commons.ui; bundle-version="3.8.0"
           -> Bundle-SymbolicName: org.eclipse.mylyn.commons.ui; bundle-version="3.23.0.v20170411-1844"; singleton:="true"
              org.eclipse.mylyn.commons.ui [6352]
                Unresolved requirement: Require-Bundle: com.google.guava; bundle-version="[21.0.0,22.0.0)"
  Unresolved requirement: Require-Bundle: org.eclipse.mylyn.commons.ui; bundle-version="3.8.0"
    -> Bundle-SymbolicName: org.eclipse.mylyn.commons.ui; bundle-version="3.23.0.v20170411-1844"; singleton:="true"
  Unresolved requirement: Require-Bundle: org.eclipse.mylyn.commons.notifications.ui; bundle-version="1.0.0"
    -> Bundle-SymbolicName: org.eclipse.mylyn.commons.notifications.ui; bundle-version="1.15.0.v20170411-1844"; singleton:="true"
       org.eclipse.mylyn.commons.notifications.ui [6347]
         Unresolved requirement: Require-Bundle: org.eclipse.mylyn.commons.ui; bundle-version="3.8.0"
           -> Bundle-SymbolicName: org.eclipse.mylyn.commons.ui; bundle-version="3.23.0.v20170411-1844"; singleton:="true"
         Unresolved requirement: Require-Bundle: org.eclipse.mylyn.commons.workbench; bundle-version="3.8.0"
           -> Bundle-SymbolicName: org.eclipse.mylyn.commons.workbench; bundle-version="3.23.0.v20170503-0014"; singleton:="true"
              org.eclipse.mylyn.commons.workbench [6353]
                Unresolved requirement: Require-Bundle: org.eclipse.mylyn.commons.ui; bundle-version="3.8.0"
                  -> Bundle-SymbolicName: org.eclipse.mylyn.commons.ui; bundle-version="3.23.0.v20170411-1844"; singleton:="true"

    at org.eclipse.osgi.container.Module.start(Module.java:444)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1628)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1607)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1579)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1522)
    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)

有人可以帮我清理我的应用程序依赖项吗?

在插件选项卡中配置了插件:

格雷格-449:
''Run > Run Configuration' 上应用程序的插件选项卡是您配置从 Eclipse 中启动时包含的插件的地方。'