在创建示例时,我注意到了非常奇怪的行为,由于这种行为,我有点卡住了。我将在两个场景中解释这个问题。
设想方案1。
Plug-ins.
现在,导出可部署的特性,并将生成的文件复制到the服务器。
打开安装新软件选项,并使用URL安装第二个功能。
这个特性会被安装,甚至会随着每次构建而更新。
场景2
Plug-ins.
导出产品并使用生成的启动程序进行测试。一切都很好。
现在,导出可部署的特性,并将生成的文件复制到the服务器。
打开“安装新软件”选项并使用URL更新应用程序。
更新程序会在功能已经安装并将执行更新时发出抱怨。
不幸的是,更新不起作用,该步骤显示错误如下:
Your original request has been modified.
"Mail Protection" is already installed, so an update will be performed instead.
"Core" is already installed, so an update will be performed instead.
Cannot complete the install because of a conflicting dependency.
Software being installed: Mail Protection 1.0.0.201103061657 (com.example.mail.protection.feature.group 1.0.0.201103061657)
Software currently installed: RCP Product 1.0.0.201103061656 (com.example.mail.product 1.0.0.201103061656)
Only one of the following can be installed at once:
Mail Protection 1.0.0.201103061656 (com.example.mail.protection.feature.jar 1.0.0.201103061656)
Mail Protection 1.0.0.201103061657 (com.example.mail.protection.feature.jar 1.0.0.201103061657)
Cannot satisfy dependency:
From: RCP Product 1.0.0.201103061656 (com.example.mail.product 1.0.0.201103061656)
To: com.example.mail.protection.feature.group [1.0.0.201103061656]
Cannot satisfy dependency:
From: Mail Protection 1.0.0.201103061656 (com.example.mail.protection.feature.group 1.0.0.201103061656)
To: com.example.mail.protection.feature.jar [1.0.0.201103061656]
Cannot satisfy dependency:
From: Mail Protection 1.0.0.201103061657 (com.example.mail.protection.feature.group 1.0.0.201103061657)
To: com.example.mail.protection.feature.jar [1.0.0.201103061657]这似乎是令人惊讶的,因为更新工作时,我安装的功能后,产品已出口。
但是,如果该功能已经与产品捆绑在一起,那么对该功能的更新就无法工作。
你知道为什么吗?
发布于 2012-02-27 06:42:22
我也有同样的问题,但我想出来了。问题是,如果我们将它们作为可部署的特性导出或通过更新站点构建它们,那么与产品捆绑在一起的基本插件就无法更新。唯一的方法是重新导出您的产品(从产品配置),并将所需的基本插件和功能从导出文件夹复制到web服务器。现在再次检查更新,您将在列表中看到更新的基本功能和更新的产品版本。您不能只更新基本功能,您必须同时更新(功能和产品)。这是一个停止表演的地方,现在它对我有效了。
发布于 2019-05-17 08:07:04
我有同样的问题,更新我的功能独立于我的产品。解决方案是,您需要将您的特性作为“根级功能”来更新。
<features>
<feature id="org.eclipse.e4.rcp"/>
<feature id="org.eclipse.platform"/>
<feature id="com.codeandme.tycho.plugin.feature" installMode="root"/>
<feature id="com.codeandme.tycho.product.feature"/>
<feature id="org.eclipse.help" installMode="root"/>
<feature id="org.eclipse.emf.ecore"/>
<feature id="org.eclipse.equinox.p2.core.feature"/>
<feature id="org.eclipse.emf.common"/>
<feature id="org.eclipse.equinox.p2.rcp.feature"/>
<feature id="org.eclipse.equinox.p2.user.ui"/>
<feature id="org.eclipse.rcp"/>
<feature id="org.eclipse.equinox.p2.extras.feature"/>
</features>我从http://codeandme.blogspot.com/2014/06/tycho-11-install-root-level-features.html和http://www.lorenzobettini.it/2015/03/build-your-own-custom-eclipse/找到了这个解决方案
https://stackoverflow.com/questions/5210293
复制相似问题