RCP p2更新:一次只能安装以下之一

Arn*_*nja 5 java eclipse p2 eclipse-rcp

我创建了一个启用 p2 的 RCP 应用程序。添加了 ui,也可以添加更新站点。

但是添加新软件(已安装),会发生这种情况:

Your original request has been modified.
  "Help" is already installed, so an update will be performed instead.
Cannot complete the install because of a conflicting dependency.
  Software being installed: Help 1.0.0.201210110844 (smartapps.smartsignature.features.help.feature.group 1.0.0.201210110844)
  Software currently installed: SmartSignature 1.0.0.201210110831 (smartapps.smartsignature.application.product 1.0.0.201210110831)
  Only one of the following can be installed at once: 
    Help 1.0.0.201210110844 (smartapps.smartsignature.features.help.feature.jar 1.0.0.201210110844)
    Help 1.0.0.201210110831 (smartapps.smartsignature.features.help.feature.jar 1.0.0.201210110831)
  Cannot satisfy dependency:
    From: SmartSignature 1.0.0.201210110831 (smartapps.smartsignature.application.product 1.0.0.201210110831)
    To: smartapps.smartsignature.features.help.feature.group [1.0.0.201210110831]
  Cannot satisfy dependency:
    From: Help 1.0.0.201210110831 (smartapps.smartsignature.features.help.feature.group 1.0.0.201210110831)
    To: smartapps.smartsignature.features.help.feature.jar [1.0.0.201210110831]
  Cannot satisfy dependency:
    From: Help 1.0.0.201210110844 (smartapps.smartsignature.features.help.feature.group 1.0.0.201210110844)
    To: smartapps.smartsignature.features.help.feature.jar [1.0.0.201210110844]
Run Code Online (Sandbox Code Playgroud)

嗯,这就是 p2 的全部意义......我认为有一件事可能会导致错误,但我不知道如何实际修复它。

存储库中的功能是否可能与基本 RCP 应用程序中安装的功能不同?在安装 p2 时检测到它是相同的功能,但仍然认为它是不同的,因为它有不同的来源?这有道理吗?

Arn*_*nja 1

好吧,我明白了......这只是一个依赖性问题。

我的应用程序产品基于这些功能并具有一个版本。所以安装另一个版本失败。

我刚刚添加了我的应用程序功能作为产品的依赖项,并将我的所有(可更新)功能包含在此应用程序功能中。包含它们时,您可以将功能设置为可选。

将此功能设置为可选仍将其包含在您的产品版本中,但它允许您一次仅执行 1 个功能的独立更新!