New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a module to produce a standard OSGi Repository #10073
base: jetty-10.0.x
Are you sure you want to change the base?
Conversation
Jetty currently already provides a P2 Update-Site as maven artifact, but there is also now a standardized repository format available. This adds a new module 'jetty-osgi-repository' that generates such a standard repository.
@laeubi thanks for the PR. I'm a bit mystified as I can't see how this module and/or the tycho plugin works out which jetty modules to include in the osgi repository? Also, what is the repository that is produced? Is it a zip file? Or are the jetty modules automagically uploaded to an Eclipse repository that follows the osgi repository format? BTW this doesn't seem to build currently? Can you change this to a |
It works by analyzing all projects in the reactor an collecting those build artifacts that are a bundle (what is most of the jetty artifacts).
The result is a
Everything is still referenced as maven artifact (you can search for
It seems that some parts are using Java 11 but sadly Tycho requires Java 17 to build :-(
will do that. |
@laeubi thanks for those explanations, makes sense. I'm wondering if you might not be better off targeting jetty-12? Pretty soon we're going to release 12.0.0 and that will become our main development branch because it can do everything jetty-10 and jetty-11 do. Plus it uses jdk-19 as a minimum. |
We've been moving away from all of the variations of OSGI repository over the years. Group A wants it in one format. This mess is the reality of OSGI repository stuff over the years. So now we leave the OSGI related build in Eclipse Jetty to the Eclipse Tycho team. https://github.com/eclipse/jetty.project/blob/jetty-10.0.x/jetty-p2/pom.xml This apparently uses |
@joakime yes I know (I initially added the p2 stuff), the |
Perhaps all a small reorg is warranted now as well.
|
Jetty currently already provides a P2 Update-Site as maven artifact, but there is also now a standardized repository format available.
This adds a new module 'jetty-osgi-repository' that generates such a standard repository.
This currently references the tycho snapshot repository but I plan to do a new release soon so it would be great if it already can be reviewed and discussed if it could be an option for jetty.
As with the P2 module this does not really require anything special or maintained, everything is performed by the maven plugin.