我正在尝试使用“ --console”启动RCP应用程序(产品)。我遇到的冲突很少,但不确定如何解决此特定冲突。
org.osgi.framework.BundleException: The bundle
"com.company.abc.app_1.5 [111]" could not be resolved.
Reason: Missing Constraint: Import-Package: org.eclipse.e4.ui.internal.workbench.swt; version="0.0.0"
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1327)
在检查我认为应该查看的依赖项时,我在com.company.abc.app中找到了以下内容:
[INFO] +- org.eclipse.ui:org.eclipse.ui.workbench:jar:3.106.2-SDK-4.4.2:compile
[INFO] | +- org.eclipse.help:org.eclipse.help:jar:3.6.0-SDK-4.4.2:compile
[INFO] | +- org.eclipse.jface:org.eclipse.jface.databinding:jar:1.6.200-SDK-4.4.2:compile
[INFO] | | \- org.eclipse.core:org.eclipse.core.databinding:jar:1.4.2-SDK-4.4.2:compile
[INFO] | +- org.eclipse.core:org.eclipse.core.databinding.property:jar:1.4.200-SDK-4.4.2:compile
[INFO] | +- org.eclipse.core:org.eclipse.core.databinding.observable:jar:1.4.1-SDK-4.4.2:compile
[INFO] | +- **org.eclipse.e4:org.eclipse.e4.ui.workbench.swt:jar:0.12.100-SDK-4.4.2:compile**
尽管我在产品中看不到任何org.eclipse.e4.ui.workbench.swt。当我在Maven仓库中搜索时,找不到org.eclipse.e4.ui.workbench.swt v0.12.100-SDK-4.4.2。这有点令人困惑。
此外,我还不完全理解为什么它抱怨缺少约束:Import-Package:org.eclipse.e4.ui.internal.workbench.swt中的版本0.0.0; version =“ 0.0.0” 吗?