Eclipse更新功能/插件

时间:2020-08-20 21:47:35

标签: eclipse-rcp rcp

我已经创建了我的功能1.0.0 ,并将其条目添加到了产品文件中,并由Tycho构建了该RCP应用程序。构建完成后,当我启动应用程序并跳转到“安装详细信息窗口”时,我将获得以下详细信息,

enter image description here

如上所示,我们可以看到我的功能1.0.0 在RCP产品下。 当我尝试将我的功能1.0.0更新为我的功能2.0.0 时,我遇到了以下错误-

Your original request has been modified.
"My Feature" is already installed, so an update will be performed instead.
Cannot complete the install because of a conflicting dependency.
  Software being installed: My Feature 2.0.0.202008210114 (com.example.p2.feature.feature.group 2.0.0.202008210114)
  Software currently installed: RCP Product 1.0.0.202008201851 (RCP Product 1.0.0.202008201851)
  Only one of the following can be installed at once: 
    My Feature 1.0.0.202008201851 (com.example.p2.feature.feature.jar 1.0.0.202008201851)
    My Feature 2.0.0.202008210114 (com.example.p2.feature.feature.jar 2.0.0.202008210114)
  Cannot satisfy dependency:
    From: RCP Product 1.0.0.202008201851 (RCP Product 1.0.0.202008201851)
    To: com.example.p2.feature.feature.group [1.0.0.202008201851]
  Cannot satisfy dependency:
    From: My Feature 1.0.0.202008201851 (com.example.p2.feature.feature.group 1.0.0.202008201851)
    To: com.example.p2.feature.feature.jar [1.0.0.202008201851]
  Cannot satisfy dependency:
    From: My Feature 2.0.0.202008210114 (com.example.p2.feature.feature.group 2.0.0.202008210114)
    To: com.example.p2.feature.feature.jar [2.0.0.202008210114]

另一个观察结果是,当我在没有我的功能1.0.0 的情况下构建RCP应用程序时,在构建后启动了应用程序,然后安装了我的功能1.0.0 。 然后,我使用“安装新软件向导”将“我的功能1.0.0”更新为我的功能2.0.0 ,它已成功更新。

我正在寻找以下几点的帮助。

  1. 为什么添加到产品文件中的功能没有更新为新版本并抛出错误。
  2. 对于可更新插件/功能的功能,我们是否需要在tycho构建过程中进行安装,以及如何在tycho构建过程中实现安装功能/插件。

0 个答案:

没有答案
相关问题