使用 RCP 时出现目标错误 + P2
按照指南,我定义了一个包含 RCP 和 P2 功能的目标:
<?pde version="3.6"?>
<target name="MyTarget" sequenceNumber="1">
<locations>
<location includeAllPlatforms="false" includeMode="planner" includeSource="false" type="InstallableUnit">
<unit id="org.eclipse.rcp.feature.group" version="0.0.0"/>
<unit id="org.eclipse.equinox.executable.feature.group" version="0.0.0" />
<unit id="org.eclipse.equinox.p2.rcp.feature.feature.group" version="0.0.0" />
<repository location="http://download.eclipse.org/releases/indigo/"/>
</location>
</locations>
<targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
</target>
但是,当我使用 Eclipse 打开此目标时,版本 3.4.0.v20110502 和 3.4.1.R37x_20110725 之间的 org.eclipse.equinox.preferences 存在冲突...(参见http://postimage.org/image/2zgruqrwk/ 获取错误的屏幕截图)。
相反,第谷能够正确地构建系统......这让我更加困惑!
有人知道如何解决吗?
Following the guides, I defined a target including both RCP and P2 features:
<?pde version="3.6"?>
<target name="MyTarget" sequenceNumber="1">
<locations>
<location includeAllPlatforms="false" includeMode="planner" includeSource="false" type="InstallableUnit">
<unit id="org.eclipse.rcp.feature.group" version="0.0.0"/>
<unit id="org.eclipse.equinox.executable.feature.group" version="0.0.0" />
<unit id="org.eclipse.equinox.p2.rcp.feature.feature.group" version="0.0.0" />
<repository location="http://download.eclipse.org/releases/indigo/"/>
</location>
</locations>
<targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
</target>
However, when I open this target with Eclipse, I have a conflict in org.eclipse.equinox.preferences between versions 3.4.0.v20110502 and 3.4.1.R37x_20110725... (see http://postimage.org/image/2zgruqrwk/ for a screenshot of the error).
Instead, tycho is able to correctly build the system... and this puzzles me even more!
Does anybody know how to solve it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不得不强制 eclipse 使用最新版本的 P2(标记为“R37”)。
我无法理解为什么 eclipse 不使用该版本(相反 tycho 使用了正确的版本)。
I had to force eclipse to use the latest version of P2 (which was marked "R37").
I cannot understand why eclipse would not use that version (instead tycho was using the correct version).