首页 > 解决方案 > Eclipse 可插拔功能

问题描述

我开发了一个 RCP 应用程序并由 Tycho 构建并获得以下结构,

[![在此处输入图像描述][1]][1]

突出显示的功能是我已经实现的自定义功能。由于我的自定义功能 [ie Feature 1.0.2.202008071744 ] 在RCP Prouct 下,当我尝试使用Feature 2.0.2安装/更新该功能时,我遇到了错误

  "Feature" is already installed, so an update will be performed instead.
Cannot complete the install because of a conflicting dependency.
  Software being installed: Feature 2.0.2.202008071746 (com.example.p2.feature.feature.group 2.0.2.202008071746)
  Software currently installed: RCP Product 1.0.0.202008071744 (RCP Product 1.0.0.202008071744)
  Only one of the following can be installed at once: 
    Core 1.0.1.202008071744 (com.example.p2.core 1.0.1.202008071744)
    Core 1.0.1.202008071746 (com.example.p2.core 1.0.1.202008071746)
  Cannot satisfy dependency:
    From: RCP Product 1.0.0.202008071744 (RCP Product 1.0.0.202008071744)
    To: com.example.p2.feature.feature.group [1.0.2.202008071744]
  Cannot satisfy dependency:
    From: Feature 1.0.2.202008071744 (com.example.p2.feature.feature.group 1.0.2.202008071744)
    To: com.example.p2.core [1.0.1.202008071744]
  Cannot satisfy dependency:
    From: Feature 2.0.2.202008071746 (com.example.p2.feature.feature.group 2.0.2.202008071746)
    To: com.example.p2.core [1.0.1.202008071746] ```

Also when I tried to install new feature[Name - Command Version 1.0.2] it installed successfully. Once it get installed I checked it on **installation details window** its entry was not coming under **RCP -Product** and when I tried to update it, Update was successful.  Please refer below image 

[![enter image description here][2]][2]

Can someone help me on below points,
1) how to perform update on existing feature/plugin wheter its is externally installed or in-built[i.e bundled with RCP product]. 
2) Is there any way by which I can include plugins which are present on some update site/locally while building it through tycho. and later as and when update is available we can perform update on it.


  [1]: https://i.stack.imgur.com/MHjPg.png
  [2]: https://i.stack.imgur.com/8MXhh.png

标签: eclipseeclipse-rcp

解决方案


推荐阅读