将Jetty包添加到Eclipse RCP目标会导致其他包被删除

时间:2015-07-09 21:16:34

标签: jetty eclipse-rcp p2 target-platform

我有一个使用Jetty WebSocket客户端的RCP应用程序。我创建了一个插件来包装jetty websocket客户端代码,以及其他jetty依赖项,这样就可以了。

现在我想在我的RCP目标中包含jetty,而不是使用包装jetty代码的插件。我向目标添加一个指向jetty update site的位置,选择所需的码头版本,然后取消选中选项"包含所需的软件"。目标似乎成功加载,但是一些曾经出现在目标中的插件消失了。

例如,在添加jetty位置之前,当我过滤xtend时,在内容选项卡上,我看到了从位置http://download.eclipse.org/releases/luna加载的包org.eclipse.xtend。添加jetty位置后,内容选项卡上将不再显示包org.eclispe.xtend。在添加jetty位置之前和之后,在目标编辑器UI中,我为luna版本位置选择了各种功能,包括EMF SDK,EMF Xcore SDK和四个Graphiti功能。用户界面中没有任何内容发生变化,因此我不明白为什么只添加指向jetty更新站点的位置会使捆绑包在其他位置消失。

我尝试编辑目标源文件,只需添加jetty位置并在文件顶部碰撞序列计数器,我得到相同的结果。我也尝试在luna版本位置明确添加XTend功能,但也无济于事。

这只是一个缺失的插件的一个例子。还有一些也消失了。似乎添加指向jetty更新站点的位置这一事实使我的目标无法使用。

任何人都可以分享如何将jetty添加到RCP目标的任何示例吗?

编辑:添加指向jetty的位置之前和之后的目标文件

之前:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?><target name="com.example.target" sequenceNumber="14">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="false" type="InstallableUnit">
<unit id="org.eclipse.xtext.sdk.feature.group" version="0.0.0"/>
<repository location="http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="false" type="InstallableUnit">
<unit id="org.eclipse.cdt.feature.group" version="8.6.0.201502131403"/>
<unit id="org.eclipse.cdt.sdk.feature.group" version="8.6.0.201502131403"/>
<repository location="http://download.eclipse.org/tools/cdt/releases/8.6"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="false" type="InstallableUnit">
<unit id="org.eclipse.gef.sdk.feature.group" version="3.9.101.201408150207"/>
<repository location="http://download.eclipse.org/releases/luna/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="false" type="InstallableUnit">
<unit id="org.eclipse.platform.sdk" version="4.4.2.M20150204-1700"/>
<unit id="org.eclipse.rcp.source.feature.group" version="4.4.2.v20150204-1700"/>
<unit id="org.eclipse.sdk.ide" version="4.4.2.M20150204-1700"/>
<repository location="http://download.eclipse.org/eclipse/updates/4.4"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="false" type="InstallableUnit">
<unit id="org.eclipse.tcf.te.terminals.feature.feature.group" version="1.2.0.201406042322"/>
<unit id="org.eclipse.tcf.te.terminals.sdk.feature.feature.group" version="1.2.0.201406042322"/>
<repository location="http://download.eclipse.org/tools/tcf/terminals_luna/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="false" type="InstallableUnit">
<unit id="com.google.gson" version="2.2.4.v201311231704"/>
<unit id="com.google.gson.source" version="2.2.4.v201311231704"/>
<repository location="http://download.eclipse.org/tools/orbit/downloads/drops/R20140525021250/repository"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="false" type="InstallableUnit">
<unit id="org.eclipse.graphiti.export.feature.feature.group" version="0.11.2.v20150204-0954"/>
<unit id="org.eclipse.graphiti.sdk.plus.feature.feature.group" version="0.11.2.v20150204-0954"/>
<unit id="org.eclipse.emf.ecore.xcore.sdk.feature.group" version="1.2.2.v20150202-0452"/>
<unit id="org.eclipse.graphiti.sdk.feature.feature.group" version="0.11.2.v20150204-0954"/>
<unit id="org.eclipse.graphiti.feature.feature.group" version="0.11.2.v20150204-0954"/>
<unit id="org.eclipse.emf.sdk.feature.group" version="2.10.2.v20150123-0452"/>
<unit id="org.eclipse.graphiti.feature.tools.feature.group" version="0.11.2.v20150204-0954"/>
<repository location="http://download.eclipse.org/releases/luna/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="false" type="InstallableUnit">
<unit id="org.eclipse.zest.sdk.feature.group" version="1.5.101.201408150207"/>
<repository location="http://download.eclipse.org/releases/luna/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="false" type="InstallableUnit">
<unit id="org.python.pydev.feature.feature.group" version="4.1.0.201505270003"/>
<repository location="http://pydev.org/updates"/>
</location>
</locations>
</target>

后:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?><target name="com.example.target" sequenceNumber="15">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="false" type="InstallableUnit">
<unit id="org.eclipse.xtext.sdk.feature.group" version="0.0.0"/>
<repository location="http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="false" type="InstallableUnit">
<unit id="org.eclipse.cdt.feature.group" version="8.6.0.201502131403"/>
<unit id="org.eclipse.cdt.sdk.feature.group" version="8.6.0.201502131403"/>
<repository location="http://download.eclipse.org/tools/cdt/releases/8.6"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="false" type="InstallableUnit">
<unit id="org.eclipse.gef.sdk.feature.group" version="3.9.101.201408150207"/>
<repository location="http://download.eclipse.org/releases/luna/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="false" type="InstallableUnit">
<unit id="org.eclipse.platform.sdk" version="4.4.2.M20150204-1700"/>
<unit id="org.eclipse.rcp.source.feature.group" version="4.4.2.v20150204-1700"/>
<unit id="org.eclipse.sdk.ide" version="4.4.2.M20150204-1700"/>
<repository location="http://download.eclipse.org/eclipse/updates/4.4"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="false" type="InstallableUnit">
<unit id="org.eclipse.tcf.te.terminals.feature.feature.group" version="1.2.0.201406042322"/>
<unit id="org.eclipse.tcf.te.terminals.sdk.feature.feature.group" version="1.2.0.201406042322"/>
<repository location="http://download.eclipse.org/tools/tcf/terminals_luna/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="false" type="InstallableUnit">
<unit id="com.google.gson" version="2.2.4.v201311231704"/>
<unit id="com.google.gson.source" version="2.2.4.v201311231704"/>
<repository location="http://download.eclipse.org/tools/orbit/downloads/drops/R20140525021250/repository"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="false" type="InstallableUnit">
<unit id="org.eclipse.graphiti.export.feature.feature.group" version="0.11.2.v20150204-0954"/>
<unit id="org.eclipse.graphiti.sdk.plus.feature.feature.group" version="0.11.2.v20150204-0954"/>
<unit id="org.eclipse.emf.ecore.xcore.sdk.feature.group" version="1.2.2.v20150202-0452"/>
<unit id="org.eclipse.graphiti.sdk.feature.feature.group" version="0.11.2.v20150204-0954"/>
<unit id="org.eclipse.graphiti.feature.feature.group" version="0.11.2.v20150204-0954"/>
<unit id="org.eclipse.emf.sdk.feature.group" version="2.10.2.v20150123-0452"/>
<unit id="org.eclipse.graphiti.feature.tools.feature.group" version="0.11.2.v20150204-0954"/>
<repository location="http://download.eclipse.org/releases/luna/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="false" type="InstallableUnit">
<unit id="org.eclipse.zest.sdk.feature.group" version="1.5.101.201408150207"/>
<repository location="http://download.eclipse.org/releases/luna/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="false" type="InstallableUnit">
<unit id="org.python.pydev.feature.feature.group" version="4.1.0.201505270003"/>
<repository location="http://pydev.org/updates"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="false" type="InstallableUnit">
<unit id="org.eclipse.jetty.bundles.f.feature.group" version="9.2.5.201411141551"/>
<repository location="http://download.eclipse.org/jetty/updates/jetty-bundles-9.x/"/>
</location>
</locations>
</target>

0 个答案:

没有答案