基于RCP的应用程序的P2更新失败 [英] P2 update of RCP based application fails
问题描述
我尝试通过P2更新站点更新基于Eclipse-RCP-3.5的应用程序。该应用程序包含两个功能。
I trying to update an Eclipse-RCP-3.5 based application by an P2 update-site. The Application contains two features.
产品由 Eclipse Buckminster
构建。创建P2更新站点是产品构建的一部分。
Product is built by Eclipse Buckminster
. Creation of the P2 update site is part of the product build.
通过菜单开始更新时:更新 - >检查更新
显示一个消息框:无需更新。
When start the update by menu: Update -> Check for Updates
a messages box is shown: There is nothing to update.
当我尝试菜单时:更新 - >安装新软件...
并选择相同的更新站点报告错误:
When i try menu: Update -> Install New Software...
and select the same update-site an error is reported:
Your original request has been modified.
"Verinice Anwendung" is already installed, so an update will be performed instead.
"verinice server Feature" is already installed, so an update will be performed instead.
Cannot complete the install because of a conflicting dependency.
Software being installed: Verinice Anwendung 1.1.1.201007130142 (sernet.gs.ui.rcp.main.feature.feature.group 1.1.1.201007130142)
Software currently installed: verinice 1.1.1 (sernet.gs.ui.rcp.main.product 1.1.1)
Only one of the following can be installed at once:
Verinice Anwendung 1.1.1.201007130142 (sernet.gs.ui.rcp.main.feature.feature.jar 1.1.1.201007130142)
Verinice Anwendung 1.1.1.201007021358 (sernet.gs.ui.rcp.main.feature.feature.jar 1.1.1.201007021358)
Cannot satisfy dependency:
From: Verinice Anwendung 1.1.1.201007021358 (sernet.gs.ui.rcp.main.feature.feature.group 1.1.1.201007021358)
To: sernet.gs.ui.rcp.main.feature.feature.jar [1.1.1.201007021358]
Cannot satisfy dependency:
From: Verinice Anwendung 1.1.1.201007130142 (sernet.gs.ui.rcp.main.feature.feature.group 1.1.1.201007130142)
To: sernet.gs.ui.rcp.main.feature.feature.jar [1.1.1.201007130142]
Cannot satisfy dependency:
From: verinice 1.1.1 (sernet.gs.ui.rcp.main.product 1.1.1)
To: sernet.gs.ui.rcp.main.feature.feature.group [1.1.1.201007021358]
推荐答案
您需要构建新版本的产品。
You need to build a new version of the product.
p2区分已安装的内容和已安装内容所需内容。您的产品 sernet.gs.ui.rcp.main.product
是已安装的产品。其他一切都是必需的。 检查更新正在寻找新版本的 sernet.gs.ui.rcp.main.product
。
p2 distinguishes between what is "installed" and what is "required by the things that are installed". Your product sernet.gs.ui.rcp.main.product
is the thing that is installed. Everything else is required by that. "Check for Updates" is looking for a new version of sernet.gs.ui.rcp.main.product
.
通过安装该功能,您可以将其添加到已安装的事物列表中(而不是仅仅安装的内容所需)。但是,您仍然拥有对该功能的特定版本有要求的原始产品。该要求与新版本的功能冲突。
By installing the feature, you are adding it to the list of things that are installed (instead of just required by the things installed). However, you still have the original product which has a requirement on a specific version of that feature. That requirement conflicts with the new version of the feature.
This came up a few times on the eclipse forums. You might be interested in this blog post I wrote in response.
这篇关于基于RCP的应用程序的P2更新失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!