Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Versioning for RCP update(pom and MF versioning)
Versioning for RCP update [message #1714494] Fri, 13 November 2015 08:26 Go to next message
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 476
Registered: July 2009
Senior Member
Hello NG,

i'm trying to add update functionality to my application.

though it seems that i have no errors in code, the application still does report 'no updates available'

so my next (and last) guess is, that my version numbering is not correct.

i do build my repository and application with tycho/maven

so i try to figure out how the versioning in feature.xml,pom.xml and MANIFEST.MF must be done.

first i show you a simplified structure of my application

Quote:

rcp.application.product (pom=1.0.0.SNAPSHOT, product=1.0.0.qualifier)

    application.feature (pom=1.0.0.SNAPSHOT, feature=1.0.0.qualifier)

      plugin(s) (pom=1.0.0.SNAPSHOT, MF=1.0.0.qualifier)

    addon1.feature (pom=1.0.0.SNAPSHOT, feature=1.0.0.qualifier)

      plugin(s) (pom=1.0.0.SNAPSHOT, MF=1.0.0.qualifier)

    addon2.feature (pom=1.0.0.SNAPSHOT, feature=1.0.0.qualifier)

      plugin(s) (pom=1.0.0.SNAPSHOT, MF=1.0.0.qualifier)



rcp.application.parent (ALL pom.xml refer to this) (pom=1.0.0.SNAPSHOT)

so i tried with all pom/MF/feature xml/MF with qualifier/snapshot
update says: no updates available.

do i have to remove the qualifier/snapshot on pom/MF/feature, if so on which?

do i need to include the update plugin in each feature, or only the main feature?

UPDATE:
i also tried
Quote:

rcp.application.product (pom=1.0.0, product=1.0.0)

    application.feature (pom=1.0.0, feature=1.0.0)

      plugin(s) (pom=1.0.0.SNAPSHOT, MF=1.0.0.qualifier)

    addon1.feature (pom=1.0.0, feature=1.0.0)

      plugin(s) (pom=1.0.0.SNAPSHOT, MF=1.0.0.qualifier)

    addon2.feature (pom=1.0.0, feature=1.0.0)

      plugin(s) (pom=1.0.0.SNAPSHOT, MF=1.0.0.qualifier)



rcp.application.parent (ALL pom.xml refer to this) (pom=1.0.0)

same result, no updates available.

[Updated on: Fri, 13 November 2015 08:51]

Report message to a moderator

Re: Versioning for RCP update [message #1714655 is a reply to message #1714494] Sun, 15 November 2015 02:34 Go to previous messageGo to next message
Pascal Rapicault is currently offline Pascal RapicaultFriend
Messages: 333
Registered: July 2009
Location: Ottawa
Senior Member
When p2 will search for updates, it will only look at the product version (assuming the product is what is installed). You need to make sure that the version is greater than the previous one.

A couple things you want to check:
- Is the ".qualifier" found in the product replaced by a real version (e.g. a timestamp or some other values you specify during the build)
- Does the .qualifier changes from build to build? Does it grow?
Re: Versioning for RCP update [message #1714712 is a reply to message #1714655] Mon, 16 November 2015 07:40 Go to previous message
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 476
Registered: July 2009
Senior Member
.qualifier should get replaced by build date and time! (this works fine at building plugins.)
thanks for pointing me towards this, because the qualifier did NOT change for the product, even when i modified the product file itself!
i had to raise the version number by Hand!

after doing so, also the qualifier changed (wtf?)
Previous Topic:Exporting Service from Composite Subsystem
Next Topic:RCP: p2 update handler
Goto Forum:
  


Current Time: Wed Oct 09 01:44:13 GMT 2024

Powered by FUDForum. Page generated in 0.03754 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top