大家好,
我正在尝试使用EMF支持运行Eclipse应用程序。按照Eclipse (集成)的步骤(四年前的日期),我将以下包放入目标定义中:
这给了我以下的目标定义:
<?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>但是,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包的组合包含到Target定义中,但是没有任何帮助。如有任何指导,将不胜感激。
发布于 2017-11-15 16:08:37
我在日蚀论坛上找到了答案
当将更新站点添加到目标定义时,必须禁用包含所需的软件选项。这相当于将includeMode从planner切换到slicer。除此之外,您可能希望启用包含所有环境的选项(将includeAllPlatforms设置为true)。
请注意,对于所有位置,这些设置必须相同(如果目标定义包括多个位置/更新站点)。
https://stackoverflow.com/questions/46132018
复制相似问题