我正在做一个RCP项目,该项目目前运行在Eclipse Mars(4.5)版本上。我需要将项目迁移到氧气版本。但是,当我将项目导入工作区并运行应用程序时,出现了许多与插件相关的错误。我尝试了在.product文件中添加-required选项,但仍然存在许多错误。有没有人知道如何正确地将项目迁移到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)发布于 2020-06-19 14:45:41
您需要通过未解决的需求链来查看问题所在。检查列出的插件是否确实包含在构建中。插件的列表在不同版本之间会有所不同。
您展示的其中一个问题是org.apache.lucene.analyzers-common。这是Eclipse Oxygen中的新特性,因此看起来您需要更新构建中包含的插件列表。
如果您使用的是.product文件,请使用“add required”按钮来添加任何缺少的必需插件。请注意,使用基于功能的构建比使用基于插件的构建要容易得多。
https://stackoverflow.com/questions/62387646
复制相似问题