Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Version semantic of release for both eclipse and maven
Version semantic of release for both eclipse and maven [message #1859267] Thu, 25 May 2023 09:32 Go to next message
Didier Vojtisek is currently offline Didier VojtisekFriend
Messages: 31
Registered: July 2009
Member
Hi

For our developpements, we used to develop eclipse plugin using the .qualifier in all the plugins.

when using tycho, a 1.0.0.qualifier is mapped to 1.0.0-SNAPSHOT


so far so good, we used to deploy those plugins only via update site so we can let the .qualifier all the time.

However, we now wish to make most (or at least a significant subset) of the plugins available in maven central. (we compile each project twice with 2 different pom.xml, one for tycho and use in update site, and one for maven by reproducing the dependencies using only maven central jars)
when doing a release in maven central, this requires to remove the -SNAPSHOT in order to publish it.

But I'm not sure about the real semantic there since (correct me if I'm wrong)
for OSGI :
1.0.0 < 1.0.0.qualifier
and for maven :
1.0.0-SNAPSHOT < 1.0.0

Any suggestion about how to correctly change versions when doing a release ? (removing both the .qualifier/-SNAPSHOT ?, removing only -SNAPSHOT in non tycho version ? , replacing .qualifier/-SNAPSHOT by a fixed buildID everywhere ? ....)
How other project achieve that ?

thanks

[Updated on: Thu, 25 May 2023 09:32]

Report message to a moderator

Re: Version semantic of release for both eclipse and maven [message #1859293 is a reply to message #1859267] Sat, 27 May 2023 06:07 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33145
Registered: July 2009
Senior Member
Yes you are right about the strange version ordering. I'm not sure how everyone else is publishing to Maven. There seem to be different ways. But one thing to note is that you can take the jar that is using the .qualifier expanded name and publish that to Maven just by renaming it.

You can look here how the platform does it:

https://github.com/eclipse-platform/eclipse.platform.releng/tree/master/publish-to-maven-central

They use the CBI aggregator to read a p2 repository and write it as a Maven-compatible repository:

https://github.com/eclipse-platform/eclipse.platform.releng/blob/master/publish-to-maven-central/SDK4Mvn.aggr

The scripts being used are there too.

The jobs that do the work are here:

https://ci.eclipse.org/releng/view/Publish%20to%20Maven/

But I don't think you can read the details without a login...


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:IDE Core Dump after glib/webgtk update
Next Topic:Launching Help from RCP application on macOS
Goto Forum:
  


Current Time: Sat May 04 18:34:38 GMT 2024

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

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

Back to the top