如何将遗留的日食RCP功能项目从Mars(4.5)迁移到Oxygen(4.7)



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

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

!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)

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

在您显示的内容中,一个问题是org.apache.lucene.analyzers-common.这是 Eclipse Oxygen 中的新功能,因此看起来您需要更新构建中包含的插件列表。

如果您使用的是 .product 文件,请使用"添加必需"按钮添加任何缺少的必需插件。请注意,使用基于功能的构建而不是基于插件的构建可以更轻松地解决此问题。

最新更新