Eclipse RCP - 更新 [英] Eclipse RCP - Update

查看:286
本文介绍了Eclipse RCP - 更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在创建样本时,我注意到非常奇怪的行为,由于我有些卡住了。我会在两种情况下解释问题

While creating the sample, I noticed very strange behavior and due to which I am somewhat stuck. I will explain the problem in 2 scenarios


  • 创建两个插件。

  • 创建两个功能。

  • 创建一个产品&仅包含一个功能。

  • 创建一个类别并包含这两个功能。

  • 导出产品并使用生成的启动器进行测试。一切正常。

  • Create two Plug-ins.
  • Create two features.
  • Create one product & include only one feature.
  • Create a category and include both the features.
  • Export the product and test it using the generated launcher. Everything works fine.

现在导出可部署功能并将生成的文件复制到webserver中。

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

该功能已安装,甚至每个版本更新。

Now export the deployable feature and copy the generated files into webserver.
Open install new software option and install the 2nd feature using the URL.
The feature gets installed and even gets updated with every build.


  • 创建两个插件。

  • 创建两个功能。

  • 创建一个产品&包括这两个功能。 (这与第一种情况不同,只包含一个功能。)

  • 创建一个类别并包含这两个功能。

  • Create two Plug-ins.
  • Create two features.
  • Create one product & include both features. (This differs from 1st scenario, where only one feature is included.)
  • Create a category and include both the features.

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

Export the product and test it using the generated launcher. Everything works fine.

现在导出可部署功能并将生成的文件复制到webserver中。

打开安装新软件选项,并使用URL更新应用程序。 >
更新者抱怨功能已经安装,更新将被执行。

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

Now export the deployable feature and copy the generated files into webserver.
Open install new software option and update the application using the URL.
The updater complains as the feature is already installed and update will be performed instead.
Unfortunately the update doesn't work and the step shows error as:

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]

在产品导出后安装功能时,更新的效果似乎令人惊讶。

但是如果该功能已经与产品捆绑在一起,然后该功能的更新不起作用。

This seems to be surprising as update works when I install the feature after the product has been exported.
But if the feature is already bundled with the product, then the updates to the feature are not working.

你知道为什么吗?

推荐答案

我有同样的问题,但我想出来。
问题是如果我们将它们作为可部署功能导出或通过更新站点构建,则与产品捆绑的基本插件无法更新。
唯一的方法是重新导出您的产品(从产品配置),并将所需的基本插件和功能从导出文件夹复制到Web服务器中。
现在再次检查更新,您将在列表中看到更新的基本功能和更新的产品版本。
您不能仅更新基本功能,您必须更新(功能和产品)。
这是展示停止,现在它适用于我。

I had the same problem but i figured it out. The problem is the base plugins that are bundled with product can't be updated if we export them as a deployable features or build them through update site. The only way is to re-export your product(from product configuration) and copy the required base plugins and feature from the export folder into web server. Now check for updates again, you will see your updated base feature and updated product version in the list. You can't update only you base feature, you have to update both(feature and product). This was the show stopper and now it works for me.

这篇关于Eclipse RCP - 更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆