首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Eclipse RCP -更新

Eclipse RCP -更新
EN

Stack Overflow用户
提问于 2011-03-06 11:51:21
回答 2查看 1.7K关注 0票数 2

在创建示例时,我注意到了非常奇怪的行为,由于这种行为,我有点卡住了。我将在两个场景中解释这个问题。

设想方案1。

Plug-ins.

  • Create

  • 创建两个features.

  • Create one产品&只包含一个feature.

  • Create一个类别,并包含产品的features.

  • Export,并使用生成的启动程序对其进行测试。一切都很好。

现在,导出可部署的特性,并将生成的文件复制到the服务器。

打开安装新软件选项,并使用URL安装第二个功能。

这个特性会被安装,甚至会随着每次构建而更新。

场景2

Plug-ins.

  • Create

  • 创建两个features.

  • Create one产品&包括这两个特性。(这与第一种情况不同,在第一种情况下,只有一个特性是included.)

  • Create一个类别,并且包含这两个特性.

导出产品并使用生成的启动程序进行测试。一切都很好。

现在,导出可部署的特性,并将生成的文件复制到the服务器。

打开“安装新软件”选项并使用URL更新应用程序。

更新程序会在功能已经安装并将执行更新时发出抱怨。

不幸的是,更新不起作用,该步骤显示错误如下:

代码语言:javascript
复制
Your original request has been modified.
  "Mail Protection" is already installed, so an update will be performed instead.
  "Core" is already installed, so an update will be performed instead.
Cannot complete the install because of a conflicting dependency.
  Software being installed: Mail Protection 1.0.0.201103061657 (com.example.mail.protection.feature.group 1.0.0.201103061657)
  Software currently installed: RCP Product 1.0.0.201103061656 (com.example.mail.product 1.0.0.201103061656)
  Only one of the following can be installed at once: 
    Mail Protection 1.0.0.201103061656 (com.example.mail.protection.feature.jar 1.0.0.201103061656)
    Mail Protection 1.0.0.201103061657 (com.example.mail.protection.feature.jar 1.0.0.201103061657)
  Cannot satisfy dependency:
    From: RCP Product 1.0.0.201103061656 (com.example.mail.product 1.0.0.201103061656)
    To: com.example.mail.protection.feature.group [1.0.0.201103061656]
  Cannot satisfy dependency:
    From: Mail Protection 1.0.0.201103061656 (com.example.mail.protection.feature.group 1.0.0.201103061656)
    To: com.example.mail.protection.feature.jar [1.0.0.201103061656]
  Cannot satisfy dependency:
    From: Mail Protection 1.0.0.201103061657 (com.example.mail.protection.feature.group 1.0.0.201103061657)
    To: com.example.mail.protection.feature.jar [1.0.0.201103061657]

这似乎是令人惊讶的,因为更新工作时,我安装的功能后,产品已出口。

但是,如果该功能已经与产品捆绑在一起,那么对该功能的更新就无法工作。

你知道为什么吗?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2012-02-27 06:42:22

我也有同样的问题,但我想出来了。问题是,如果我们将它们作为可部署的特性导出或通过更新站点构建它们,那么与产品捆绑在一起的基本插件就无法更新。唯一的方法是重新导出您的产品(从产品配置),并将所需的基本插件和功能从导出文件夹复制到web服务器。现在再次检查更新,您将在列表中看到更新的基本功能和更新的产品版本。您不能只更新基本功能,您必须同时更新(功能和产品)。这是一个停止表演的地方,现在它对我有效了。

票数 2
EN

Stack Overflow用户

发布于 2019-05-17 08:07:04

我有同样的问题,更新我的功能独立于我的产品。解决方案是,您需要将您的特性作为“根级功能”来更新。

代码语言:javascript
复制
 <features>
  <feature id="org.eclipse.e4.rcp"/>
  <feature id="org.eclipse.platform"/>
  <feature id="com.codeandme.tycho.plugin.feature" installMode="root"/>
  <feature id="com.codeandme.tycho.product.feature"/>
  <feature id="org.eclipse.help" installMode="root"/>
  <feature id="org.eclipse.emf.ecore"/>
  <feature id="org.eclipse.equinox.p2.core.feature"/>
  <feature id="org.eclipse.emf.common"/>
  <feature id="org.eclipse.equinox.p2.rcp.feature"/>
  <feature id="org.eclipse.equinox.p2.user.ui"/>
  <feature id="org.eclipse.rcp"/>
  <feature id="org.eclipse.equinox.p2.extras.feature"/>
 </features>

我从http://codeandme.blogspot.com/2014/06/tycho-11-install-root-level-features.htmlhttp://www.lorenzobettini.it/2015/03/build-your-own-custom-eclipse/找到了这个解决方案

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/5210293

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档