thanks for the tutorial.
I set up the example rcp application as described in lab-2 of the tutorial in osgi-arch-patterns.
These are the steps I did:
Edit the Application.java class with the installFeature-Code
Added an UpdateHandler calling an UpdateOperation by executing a menu entry in the running application
Export the product as described
Created the perspective plugin/feature/updatesite
Started the exported product and the view of the created perspective plugin will be shown
I changed a visible entry in the view, the version of the plugin and feature
Updated the site.xml and created the p2 update site
Started the exported product containing the installed feature (version 1.0.0) and excuted the menu entry UpdateOperation
I inserted some output during update. This is the result:
!ENTRY com.example.app.perspectives 1 0 2016-03-31 15:52:01.391
!MESSAGE Execute UpdateHandler!
!ENTRY com.example.app.perspectives 1 0 2016-03-31 15:52:01.399
!MESSAGE Execute updateFeature!
!ENTRY com.example.app.perspectives 1 0 2016-03-31 15:52:01.482
!MESSAGE Checking update site for updates:
!ENTRY com.example.app.perspectives 1 0 2016-03-31 15:52:01.953
!MESSAGE Units to update: 4
!ENTRY com.example.app.perspectives 1 0 2016-03-31 15:52:01.960
!MESSAGE Unit to update: com.example.app.perspectives.feature.feature.group Version: 184.108.40.206603311551
!ENTRY com.example.app.perspectives 1 0 2016-03-31 15:52:01.967
!MESSAGE Unit to update: com.example.app.perspectives.feature.feature.jar Version: 220.127.116.11603311551
!ENTRY com.example.app.perspectives 1 0 2016-03-31 15:52:01.974
!MESSAGE Unit to update: Default Version: 18.104.22.168-cKxK367735E39955CC5
!ENTRY com.example.app.perspectives 1 0 2016-03-31 15:52:01.981
!MESSAGE Unit to update: com.example.app.perspectives Version: 22.214.171.124603311551
!ENTRY org.eclipse.equinox.p2.operations 1 10000 2016-03-31 15:52:02.242
!MESSAGE No updates were found.
!ENTRY com.example.app.perspectives 1 0 2016-03-31 15:52:02.249
!MESSAGE Update finished!
The IMetadataRepository recognizes the features in new versions but the status of the UpdateOperation#resolveModal()
is âNo udpates were found.â.
Can you give me a hint what may be wrong here?
Best regards, Alex
Im Auftrag von David Orme
Gesendet: Mittwoch, 30. MÃrz 2016 11:21
An: P2 developer discussions <p2-dev@xxxxxxxxxxx>
Betreff: Re: [p2-dev] Update mechanism
A bit dated but the general approach still works:
From an EclipseCon tutorial Patrick Paulin and I gave...
On Mar 30, 2016 2:21 AM, "Alexander Gerbig" <agerbig@xxxxxxxxxxxx> wrote:
Hi p2-dev team,
we are developing a rcp product with a lot of features. The features are included in the product. The update mechanism is developed as described
in the tutorial from Lars Vogel (http://www.vogella.com/tutorials/EclipseP2Update/article.html).
When I change a plugin/feature and according to that the versions of these and the product the update mechanism works. My question now: Is it
possible to just deploy the changed feature into a p2 repository so the update mechanism downloads only this feature? A local test of this scenario was not successful.
The rcp application knows the url of the p2 repository where the feature is hosted. When I point the "install new feature" dialog of my IDE
on this url the feature will be shown so the repository should be ok.
When I deploy the whole rcp product with changed version number as p2 repository the update mechanism works. But in that case the whole product will be downloaded.
Is it possible that updating a single feature which is delivered with the product does not work?
Thanks for your help!
Alexander Gerbig, Dipl.-Wirt.-Inf. (FH)
Softwareentwicklung und -beratung
+49 931 260 798 13 |
F +49 931 260 798 29
| Ein Unternehmen der Prof. Thome Gruppe
Mergentheimer Str. 76a | 97082 WÃrzburg | Zentrale: +49 931 260 798 0
Vorstand: Dr. Christian Schneider
Aufsichtsratsvorsitzender: Prof. Dr. Rainer Thome | HRB: 10523 (WÃrzburg)
p2-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit