I build a Eclipse RCP product using Tycho on a nightly build server. I'd like to allow the product to update itself via a p2 repository, but Eclipse only notices the new version if the product version is changed, although the qualifier of the version does change.
How can I allow to upgrade to the newest nightly build without changing anything manually? I do currently use the Eclipse-integrated update manager, but I could also use the p2 api if it would solve the problem.
If I try to update using the Install New Software dialog without changing the major or minor part of the product version:
Your original request has been modified.
"Product" is already installed, so an update will be performed instead.
Cannot complete the install because of a conflicting dependency.
Software being installed: Product 1.0.0.201502021648 (editor.sdk.feature.group 1.0.0.201502021648)
Software currently installed: Product 1.0.0 (Product 1.0.0)
Only one of the following can be installed at once:
Product Main Plugin 1.0.0.201502021648 (Product.editor 1.0.0.201502021648)
Product Main Plugin 1.0.0.201502011807 (Product.editor 1.0.0.201502011807)
Cannot satisfy dependency:
From: Product 1.0.0 (Product 1.0.0)
To: editor.sdk.feature.group [1.0.0.201502011807]
Cannot satisfy dependency:
From: CodeInspect 1.0.0.201502011807 (editor.sdk.feature.group 1.0.0.201502011807)
To: editor [1.0.0.201502011807]
Cannot satisfy dependency:
From: Product 1.0.0.201502021648 (editor.sdk.feature.group 1.0.0.201502021648)
To: editor [1.0.0.201502021648]
In my product file
<features>
<feature id="editor.sdk"/>
</features>
The feature.xml of my feature editor.sdk contains the including plugin with version 0.0.0, so it should not be version specific.
After changing the product version it shows a dialog similar to
Hmm, now it seems to work. I have added a Product.p2.inf with the content
requires.1.namespace = org.eclipse.equinox.p2.iu
requires.1.name = editor.sdk.feature.group
requires.1.range = [1.0.0, 10.0.0)
Now Eclipse updates without a warning and automatically.
Related
I am trying to install flowable designer in eclipse(kepler),but getting following errors. Please,give me solutions.
Cannot complete the install because one or more required items could not be found.
Software being installed: Flowable Eclipse BPMN 2.0 Designer 5.22.0 (org.flowable.designer.feature.feature.group 5.22.0)
Missing requirement: Graphiti (Incubation) 0.13.1.v20160830-1309 (org.eclipse.graphiti 0.13.1.v20160830-1309) requires 'bundle org.eclipse.emf.transaction [1.8.0,2.0.0)' but it could not be found
Cannot satisfy dependency:
From: Graphiti (Incubation) 0.13.1.v20160830-1309 (org.eclipse.graphiti.feature.feature.group 0.13.1.v20160830-1309)
To: org.eclipse.graphiti [0.13.1.v20160830-1309]
Cannot satisfy dependency:
From: Flowable Eclipse BPMN 2.0 Designer 5.22.0 (org.flowable.designer.feature.feature.group 5.22.0)
To: org.eclipse.graphiti.feature.feature.group [0.13.1.v20160830-1309]
Go to Help → Install New Software. In the following panel, click on Add button and fill in the following fields:
Name: Flowable BPMN 2.0 designer
Location: http://www.flowable.org/designer/update/
I had the same issue and error message when trying to install Flowable (both from repository URL and from Jar file).
In my case, when installing Eclipse I had reused my previous workspace.
Try installing Eclipse again with a totally fresh workspace, then adding Flowable - this approach worked for me.
I have the following structure in my project:
Product "P" is based on Feature "FA" which is based on Plugin "PA" which depends on Libray-Plugin "PL". I can export the whole product and everything works fine.
Now I want to install different modules via my update site. For example: Modul "M" which is actually a feature called "FB" which is based on Plugin "PB" which depends on Library-Plugin "PL". I am able to install the module (feature) initially. At this point the Library-Plugin has a version of "1.0.0".
When I change the module (feature) and increment the version of FB, PB and PL to 1.0.1 and then try to install it, p2 shows me the following error:
Cannot complete the install because of a conflicting dependency.
Software being installed: Modul Feature B - FB 1.0.1
Software currently installed: Product P with Feature A - FA 1.0.0
Only one of the following can be installed at once:
Library-Plugin - PL 1.0.0
Library-Plugin - PL 1.0.1
Cannot satisfy dependency:
From: Modul Feature B - FB 1.0.1
To: Library-Plugin - PL 1.0.1
Cannot satisfy dependency:
From: Product P with Feature A - FA 1.0.0
To: Library-Plugin - PL 1.0.0
What am I doing wrong? What can I do to deploy upgrades of feature modules which depend on the same library plugins as other installed features or the product?
The problem is that you include the dependencies (i.e. library plugin PL) of your plug-ins in your features FA and FB. In this way, each feature restricts the version of PL to one exact version, and so if you try to update FA or FB independently, p2 would need to install multiple versions of PL. This is not possible for most bundles (because most bundles are singletons).
Instead, your features should only contain your own bundles PA, respectively PB. In this way, the installation of product P will still contain PL (because product installations created with p2 always contain all dependencies), but you will no longer get the "Only one of the following can be installed at once" error for the PL plugin. This is because PA and PB typically have a dependency to PL with a version range (or maybe even no version restriction at all), so PL can be updated by p2 whenever there is a new version available on your update site.
When I try to update, I get this error:
Cannot complete the install because of a conflicting dependency.
Software being installed: Eclipse Platform 3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q (org.eclipse.platform.feature.group 3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q)
Software currently installed: Equinox Core Function 1.0.0.v20110502-7K7VFBVF7RZHQQHxNc02A66 (org.eclipse.equinox.core.feature.feature.group 1.0.0.v20110502-7K7VFBVF7RZHQQHxNc02A66)
Only one of the following can be installed at once:
Simple Configurator 1.0.200.v20110502-1955 (org.eclipse.equinox.simpleconfigurator 1.0.200.v20110502-1955)
Simple Configurator 1.0.200.v20110815-1438 (org.eclipse.equinox.simpleconfigurator 1.0.200.v20110815-1438)
Cannot satisfy dependency:
From: Equinox Core Function 1.0.0.v20110502-7K7VFBVF7RZHQQHxNc02A66 (org.eclipse.equinox.core.feature.feature.group 1.0.0.v20110502-7K7VFBVF7RZHQQHxNc02A66)
To: org.eclipse.equinox.simpleconfigurator [1.0.200.v20110502-1955]
Cannot satisfy dependency:
From: Eclipse Platform 3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q (org.eclipse.platform.feature.group 3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q)
To: org.eclipse.rcp.feature.group [3.7.2.v20120120-1424-9DB5FmnFq5JCf1UA38R-kz0S0272]
Cannot satisfy dependency:
From: Eclipse RCP 3.7.2.v20120120-1424-9DB5FmnFq5JCf1UA38R-kz0S0272 (org.eclipse.rcp.feature.group 3.7.2.v20120120-1424-9DB5FmnFq5JCf1UA38R-kz0S0272)
To: org.eclipse.equinox.simpleconfigurator [1.0.200.v20110815-1438]
I created the p2 update site by copying the necessary plugins from the ZIP file.
How can I force p2 to update the plugin?
This happens because the org.eclipse.equinox.simpleconfigurator bundle is marked with "singleton=true" in the bundle manifest. This does not allow p2 director to install more than one instance of this bundle.
You could update it:
either by uninstalling the original bundle first (which would be not easy since this bundle is part of RCP feature),
or (which is probably more pragmatic solution) manually replace the 1.0.200.v20110815-1438 bundle in your p2 repo with the original 1.0.200.v20110502-1955 bundle. Since the versions of the bundles are the same (1.0.200) you may expect that the contents is the same as well.
How can i installation together2008r3 in Eclipse, Dose anybody could help me?
I've download the Together2008r3.zip right now.
first, I install Eclipse SKD in Eclipse and restart.
the second, I click Help-Install new software in Eclipse and choose the zip file then click continue.
but it's back an error.
Cannot complete the install because of a conflicting dependency.
Software being installed: Together Classic Modeling (required) 8.2.3.v20101117-1439 (com.borland.together.classic.feature.group 8.2.3.v20101117-1439)
Only one of the following can be installed at once:
EMF Change Model 2.5.1.v20100907-1643 (org.eclipse.emf.ecore.change 2.5.1.v20100907-1643)
EMF Change Model 2.7.0.v20110408-2116 (org.eclipse.emf.ecore.change 2.7.0.v20110408-2116)
Cannot satisfy dependency:
From: Together OCL Modeling UI 8.2.3.v20101117-1439 (com.borland.tg.modeling.ocl.ui.feature.group 8.2.3.v20101117-1439)
To: org.eclipse.emf.all.feature.group [2.6.0,3.0.0)
Cannot satisfy dependency:
From: Together Classic Modeling (required) 8.2.3.v20101117-1439 (com.borland.together.classic.feature.group 8.2.3.v20101117-1439)
To: com.borland.together.feature.group [8.2.3.v20101117-1439]
Cannot satisfy dependency:
From: Together Modeling 8.2.3.v20101117-1439 (com.borland.together.feature.group 8.2.3.v20101117-1439)
To: com.borland.tg.modeling.ocl.ui.feature.group [8.2.3.v20101117-1439]
Cannot satisfy dependency:
From: EMF/XSD All-In-One SDK 2.6.0.v20100914-1218 (org.eclipse.emf.all.feature.group 2.6.0.v20100914-1218)
To: org.eclipse.emf.sdk.feature.group [2.6.1.v20100914-1218]
Cannot satisfy dependency:
From: EMF Change Edit 2.5.0.v20100521-1846 (org.eclipse.emf.ecore.change.edit 2.5.0.v20100521-1846)
To: bundle org.eclipse.emf.ecore.change [2.7.0,3.0.0)
Cannot satisfy dependency:
From: EMF - Eclipse Modeling Framework SDK 2.6.1.v20100914-1218 (org.eclipse.emf.sdk.feature.group 2.6.1.v20100914-1218)
To: org.eclipse.emf.ecore.change [2.5.1.v20100907-1643]
Cannot satisfy dependency:
From: EMF - Eclipse Modeling Framework SDK 2.6.1.v20100914-1218 (org.eclipse.emf.sdk.feature.group 2.6.1.v20100914-1218)
To: org.eclipse.emf.ecore.change.edit [2.5.0.v20100521-1846]
I just know something dependency lib was not found. it's because I used the J2EE edition for Eclipse(not classic)?
From what i see, it's because you have Version 2.5.1 of EMF Change Model installed, but ToGether needs 2.7.1 and the automatic installation wizard cannot resolve this.
Which version of Eclipse do you use? I think, the Indigo packages contain EMF 2.7, so with Eclipse Indigo, it should work. Otherwise you would have to uninstall EMF and manually install a newer EMF version (for information and download sites etc. look here).
I have a prodcut that include 1 feature (application.feature) that contains one plugin with application
this feature has, in included feature, another one (framework.feature)
if I update framework.feature and one of its plugin I got this error (I use "install new software" to get the correct error, because if I just try to update I go no updates were found)
Your original request has been modified.
"My Framework RCP" is already installed, so an update will be performed instead.
Cannot complete the install because of a conflicting dependency.
Software being installed: My Framework RCP 1.0.4 (it.rcp.framework.feature.feature.group 1.0.4)
Software currently installed: prototipo application 1.0.3 (it.rcp.prototipo.application.product1 1.0.3)
Only one of the following can be installed at once:
My Framework RCP 1.0.3 (it.rcp.framework.feature.feature.jar 1.0.3)
My Framework RCP 1.0.4 (it.rcp.framework.feature.feature.jar 1.0.4)
Cannot satisfy dependency:
From: My Framework RCP 1.0.3 (it.rcp.framework.feature.feature.group 1.0.3)
To: it.rcp.framework.feature.feature.jar [1.0.3]
Cannot satisfy dependency:
From: My Framework RCP 1.0.4 (it.rcp.framework.feature.feature.group 1.0.4)
To: it.rcp.framework.feature.feature.jar [1.0.4]
Cannot satisfy dependency:
From: My Application 1.0.3 (it.rcp.prototipo.application.feature.feature.group 1.0.3)
To: it.rcp.framework.feature.feature.group [1.0.3]
Cannot satisfy dependency:
From: prototipo application 1.0.3 (it.rcp.prototipo.application.product1 1.0.3)
To: it.rcp.prototipo.application.feature.feature.group [1.0.3]
The two features are separeted in two categories under update site
What's the problem? I think something in my features definition but I don't understand
It means that installed product: "it.sogei.rcp.prototipo.application.product1" depends strictly on version 1.0.3 of the feature: "it.rcp.framework.feature.feature.jar". This is why this feature can't be upgraded to version 1.0.4.
Although this question is asked long time ago.But I read this post today and replying you. I have already answered this problem. Please check the following post.
Eclipse RCP Update Fail