美好的一天,
我正在尝试使用EMF支持运行Eclipse RAP应用程序。按照Eclipse wiki(https://wiki.eclipse.org/RAP/EMF_Integration)中的步骤尽可能接近(它是四年前的日期),我将以下包放入我的Target定义中:
这给了我以下目标定义:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?>
<target name="SCRAMSTargetDefinition" sequenceNumber="17">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.emf.rap.sdk.feature.group" version="2.13.0.v20170609-0928"/>
<unit id="org.eclipse.rap.equinox.target.feature.feature.group" version="3.2.0.20170613-1148"/>
<unit id="org.eclipse.rap.feature.feature.group" version="3.2.0.20170609-1144"/>
<repository location="http://download.eclipse.org/releases/oxygen/"/>
</location>
</locations>
</target>
目标无法解析,但给出了以下依赖项错误:
Problems occurred while resolving the target contents
Cannot complete the install because one or more required items could not be found.
Cannot satisfy dependency:
From: EMF RAP Runtime 2.13.0.v20170609-0928 (org.eclipse.emf.rap.feature.group 2.13.0.v20170609-0928)
To: org.eclipse.emf.rap.edit.ui.feature.group [2.9.0.v20170609-0928]
Cannot satisfy dependency:
From: EMF RAP Target Components 2.13.0.v20170609-0928 (org.eclipse.emf.rap.sdk.feature.group 2.13.v20170609-0928)
To: org.eclipse.emf.rap.feature.group [2.13.0.v20170609-0928]
Missing requirement: EMF RAP Edit UI 2.9.0.v20170609-0928 (org.eclipse.emf.rap.edit.ui.feature.group 2.9.0.v20170609-0928) requires 'A.PDE.Target.Platform Cannot be installed into the IDE 0.0.0' but it could not be found
Software being installed: EMF RAP Target Components 2.13.0.v20170609-0928 (org.eclipse.emf.rap.sdk.feature.group 2.13.0.v20170609-0928)
埋没在 A.PDE.Target.Platform无法安装到IDE 0.0.0 中,这似乎是核心问题 - 但这是一个目标定义,而不是IDE本身,所以我不明白为什么它会以这种方式抱怨。
我尝试将其他EMF包的组合包含在目标定义中,但没有任何帮助。任何指导都将不胜感激。
答案 0 :(得分:0)
我在Eclipse Forums中找到答案:
将更新站点添加到目标定义时,必须禁用包含所需软件选项。这相当于将this.ChildViewModelProperty = new ChildViewModel(_container);
从includeMode
切换为planner
。除此之外,您可能还需要启用包含所有环境选项(将slicer
设置为includeAllPlatforms
)。
请注意,所有位置的这些设置必须相同(如果目标定义包含多个位置/更新站点)。