eclipse - 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
解决方案
推荐阅读
- c++ - 使用指针从 C++ 中的数组中获取最大值
- sql - 如何在 Netezza 中对连续日期进行分组、计数并将其用作过滤器
- node.js - gcloud auth 在 dockerfile 中不起作用
- php - 我从 MySQL 数据库中提取的 PHP 变量不断返回 undefined
- php - 将 MySQL 与 php 插入 html 列表
- python - Python:如何将字符串与等于数字的变量配对
- css - 伪元素悬停
- go - 基于主机地址的限速http请求
- binding - 使用 Annotation 和 Key 类的 Google Guice 绑定
- css - 以PDF格式Angular将JSON数据发送到打印机