我已经创建了我的功能1.0.0 ,并将其条目添加到了产品文件中,并由Tycho构建了该RCP应用程序。构建完成后,当我启动应用程序并跳转到“安装详细信息窗口”时,我将获得以下详细信息,
如上所示,我们可以看到我的功能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 ,它已成功更新。
我正在寻找以下几点的帮助。