首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何将遗留的eclipse rcp功能项目从Mars(4.5)迁移到Oxygen(4.7)

如何将遗留的eclipse rcp功能项目从Mars(4.5)迁移到Oxygen(4.7)
EN

Stack Overflow用户
提问于 2020-06-15 19:53:37
回答 1查看 61关注 0票数 0

我正在做一个RCP项目,该项目目前运行在Eclipse Mars(4.5)版本上。我需要将项目迁移到氧气版本。但是,当我将项目导入工作区并运行应用程序时,出现了许多与插件相关的错误。我尝试了在.product文件中添加-required选项,但仍然存在许多错误。有没有人知道如何正确地将项目迁移到Oxygen版本?

下面我已经粘贴了其中一个错误。我需要cdt和birt插件在项目中,所以我已经安装了这两个的最新版本。对于cdt,我也尝试了旧版本,但这不起作用。日志:

代码语言:javascript
运行
复制
!ENTRY com.contiautomotive.ertools.compare 4 0 2020-06-18 20:44:23.330
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: com.contiautomotive.ertools.compare [4]
  Unresolved requirement: Require-Bundle: com.contiautomotive.ertools.login
    -> Bundle-SymbolicName: com.contiautomotive.ertools.login; bundle-version="6.35.0.qualifier"; singleton:="true"
       com.contiautomotive.ertools.login [18]
         Unresolved requirement: Require-Bundle: com.contiautomotive.ertools.data
           -> Bundle-SymbolicName: com.contiautomotive.ertools.data; bundle-version="6.35.0.qualifier"; singleton:="true"
              com.contiautomotive.ertools.data [7]
                Unresolved requirement: Require-Bundle: com.contiautomotive.ertools.codegen
                  -> Bundle-SymbolicName: com.contiautomotive.ertools.codegen; bundle-version="6.35.0.qualifier"; singleton:="true"
                     com.contiautomotive.ertools.codegen [3]
                       Unresolved requirement: Require-Bundle: com.contiautomotive.ertools.cm
                         -> Bundle-SymbolicName: com.contiautomotive.ertools.cm; bundle-version="6.35.0.qualifier"; singleton:="true"
                            com.contiautomotive.ertools.cm [2]
                              Unresolved requirement: Require-Bundle: com.contiautomotive.ertools.main
                                -> Bundle-SymbolicName: com.contiautomotive.ertools.main; bundle-version="6.35.0.qualifier"; singleton:="true"
                                   com.contiautomotive.ertools.main [220]
                                     Unresolved requirement: Require-Bundle: org.eclipse.help.webapp
                                       -> Bundle-SymbolicName: org.eclipse.help.webapp; bundle-version="3.9.1.v20170816-0843"; singleton:="true"
                                          org.eclipse.help.webapp [184]
                                            Unresolved requirement: Require-Bundle: org.eclipse.help.base; bundle-version="[4.0.0,5.0.0)"
                                              -> Bundle-SymbolicName: org.eclipse.help.base; bundle-version="4.2.153.v20180330-0640"; singleton:="true"
                                                 org.eclipse.help.base [182]
                                                   Unresolved requirement: Require-Bundle: org.apache.lucene.analyzers-common; bundle-version="[6.1.0,7.0.0)"
                                     Unresolved requirement: Require-Bundle: org.eclipse.help.base
                                       -> Bundle-SymbolicName: org.eclipse.help.base; bundle-version="4.2.153.v20180330-0640"; singleton:="true"
                                     Unresolved requirement: Require-Bundle: org.eclipse.help.ui
                                       -> Bundle-SymbolicName: org.eclipse.help.ui; bundle-version="4.1.0.v20170311-0931"; singleton:="true"
                                          org.eclipse.help.ui [183]
                                            Unresolved requirement: Require-Bundle: org.eclipse.help.base; bundle-version="[4.0.0,5.0.0)"; visibility:="reexport"
                                              -> Bundle-SymbolicName: org.eclipse.help.base; bundle-version="4.2.153.v20180330-0640"; singleton:="true"
                Unresolved requirement: Require-Bundle: com.contiautomotive.ertools.cm
                  -> Bundle-SymbolicName: com.contiautomotive.ertools.cm; bundle-version="6.35.0.qualifier"; singleton:="true"
                Unresolved requirement: Require-Bundle: com.contiautomotive.ertools.main
                  -> Bundle-SymbolicName: com.contiautomotive.ertools.main; bundle-version="6.35.0.qualifier"; singleton:="true"
                Unresolved requirement: Require-Bundle: com.continental.plm.codesizeparser
                  -> Bundle-SymbolicName: com.continental.plm.codesizeparser; bundle-version="1.2.0.qualifier"; singleton:="true"
                     com.continental.plm.codesizeparser [40]
                       Unresolved requirement: Require-Bundle: org.eclipse.cdt.core
                         -> Bundle-SymbolicName: org.eclipse.cdt.core; bundle-version="6.4.0.201802261533"; singleton:="true"
                            org.eclipse.cdt.core [100]
                              Unresolved requirement: Require-Bundle: com.google.gson
         Unresolved requirement: Require-Bundle: com.contiautomotive.ertools.main
           -> Bundle-SymbolicName: com.contiautomotive.ertools.main; bundle-version="6.35.0.qualifier"; singleton:="true"
         Unresolved requirement: Require-Bundle: com.contiautomotive.ertools.migrateereleasezip
           -> Bundle-SymbolicName: com.contiautomotive.ertools.migrateereleasezip; bundle-version="6.35.0.qualifier"; singleton:="true"
              com.contiautomotive.ertools.migrateereleasezip [25]
                Unresolved requirement: Require-Bundle: com.contiautomotive.ertools.data
                  -> Bundle-SymbolicName: com.contiautomotive.ertools.data; bundle-version="6.35.0.qualifier"; singleton:="true"
                Unresolved requirement: Require-Bundle: com.contiautomotive.ertools.main
                  -> Bundle-SymbolicName: com.contiautomotive.ertools.main; bundle-version="6.35.0.qualifier"; singleton:="true"
                Unresolved requirement: Require-Bundle: com.contiautomotive.ertools.cm
                  -> Bundle-SymbolicName: com.contiautomotive.ertools.cm; bundle-version="6.35.0.qualifier"; singleton:="true"
         Unresolved requirement: Require-Bundle: com.contiautomotive.ertools.cm
           -> Bundle-SymbolicName: com.contiautomotive.ertools.cm; bundle-version="6.35.0.qualifier"; singleton:="true"
  Unresolved requirement: Require-Bundle: com.contiautomotive.ertools.data
    -> Bundle-SymbolicName: com.contiautomotive.ertools.data; bundle-version="6.35.0.qualifier"; singleton:="true"
  Unresolved requirement: Require-Bundle: com.contiautomotive.ertools.cm
    -> Bundle-SymbolicName: com.contiautomotive.ertools.cm; bundle-version="6.35.0.qualifier"; singleton:="true"
  Unresolved requirement: Require-Bundle: com.contiautomotive.ertools.main
    -> Bundle-SymbolicName: com.contiautomotive.ertools.main; bundle-version="6.35.0.qualifier"; singleton:="true"

    at org.eclipse.osgi.container.Module.start(Module.java:444)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1634)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1613)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1585)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1528)
    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)
EN

回答 1

Stack Overflow用户

发布于 2020-06-19 14:45:41

您需要通过未解决的需求链来查看问题所在。检查列出的插件是否确实包含在构建中。插件的列表在不同版本之间会有所不同。

您展示的其中一个问题是org.apache.lucene.analyzers-common。这是Eclipse Oxygen中的新特性,因此看起来您需要更新构建中包含的插件列表。

如果您使用的是.product文件,请使用“add required”按钮来添加任何缺少的必需插件。请注意,使用基于功能的构建比使用基于插件的构建要容易得多。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62387646

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档