-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
org.slf4j dependency imports osgi packages at 2.0 #6354
Comments
slf4j-api is not optional, but it the version range should be fixed to be |
Are those versions still computed by the bundle plugin at build time? We still need to release distro with 2.0.0 for the jpms start option works, correct? |
This updates the parent pom to set the range for all imports of slf4j by the jetty bundles Signed-off-by: Thomas Watson <[email protected]>
Fixes #6354 - allow jetty bundles to use 1.7 slf4j
Is there any chance a release of Jetty 10.0.x can be done to include this fix? I'm currently trying to evaluate the feasibility of us including this fix for the Eclipse 2021-06 release of the Eclipse release train. |
@tjwatson we're in the process of staging new versions. |
@tjwatson there is a SNAPSHOT repository that currently has this fix. Snapshot Repository - https://oss.sonatype.org/content/repositories/jetty-snapshots/ I've verified that the latest maven internal SNAPSHOT version has the desired fix. [joakim@hyperion snapshots]$ curl -O https://oss.sonatype.org/content/repositories/jetty-snapshots/org/eclipse/jetty/jetty-home/10.0.4-SNAPSHOT/jetty-home-10.0.4-20210604.022623-9.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9387k 100 9387k 0 0 11.9M 0 --:--:-- --:--:-- --:--:-- 11.9M
[joakim@hyperion snapshots]$ tar -zxf jetty-home-10.0.4-20210604.022623-9.tar.gz
[joakim@hyperion snapshots]$ cd jetty-home-10.0.4-SNAPSHOT/
[joakim@hyperion jetty-home-10.0.4-SNAPSHOT]$ java -jar start.jar --list-config | grep build
jetty.build = fbbe584a303bc47e1c542f82011df2bebbe3579f That commit: fbbe584 happens to be your exact change. |
Thanks, I confirmed that using the jetty bundles from this snapshot build allows me to remove the slf4j 2.0.0 library and only have slf4j 1.7.x. The Eclipse help system is functional using these jetty bundles also. |
Thanks for the support on this one. Can we get a more firm timeline on when 10.0.4 will be released? From our side we want to be ready to consume/test with it as soon as we can so we can get 2021-06 release out the door. Thanks. |
The 10.0.4 release is underway, it's currently staged on oss.sonatype.org and being tested. |
@tjwatson the 10.0.4 release is now available on maven central. |
It looks like the downloadable jetty-jndi-10.0.4.jar and jetty-plus-10.0.4.jar still refer to 2.0 in their lower bounds, causing at least the generated p2 sites to still contain slf4j.api_2.0.0.alpha1.jar. |
I've reopened this ... A quick analysis of 10.0.x HEAD shows the following are not correctly set ...
All of those modules have specific Some examples: |
Does the Eclipse IDE need |
@tjwatson shouldn't the definition in the manifest be all of the packages exposed by
|
@joakime Speaking for Eclipse Web Tools and not the Eclipse Platform, we use |
… be 1.7 Signed-off-by: Joakim Erdfelt <[email protected]>
PR #6381 opened to attempt to address this. |
Signed-off-by: Joakim Erdfelt <[email protected]>
Signed-off-by: Jan Bartel <[email protected]>
Signed-off-by: Joakim Erdfelt <[email protected]>
… be 1.7 (#6381) Issue #6354 - OSGI manifest for slf4j-api packages lower limit should be 1.7 * Fixed OSGi manifest in all jars. * Make osgi tests work with slf4j < 2.0.0. This required to remove the dependency on SLF4J from the demos. Signed-off-by: Joakim Erdfelt <[email protected]> Co-authored-by: Jan Bartel <[email protected]>
@tjwatson @nitind @jonahgraham we have deployed Jetty 10.0.5-SNAPSHOT. Can you please try it out and report back if it works? |
Signed-off-by: Joakim Erdfelt <[email protected]>
Signed-off-by: Joakim Erdfelt <[email protected]>
Source bundles of the following contains .java.orig files. I think these were temporary files |
@sravanlakkimsetti we had a temporary glitch on our CI network, but we wanted you guys to be able to test, so I did a deploy from my laptop, and I guess those files were wrongly included (they are the side effect of git merges). |
Thank you for the information. I already started Platform build it should be ready in 3 hours time. We should be able to test these bundles shortly. |
FYI I did another deploy as we discovered another smaller issue in the OSGi manifests, #6395. The latest snapshot is has this timestamp: The previous snapshot had: Note 15 vs 16 as the hour in the file name. |
@tjwatson @nitind @jonahgraham @sravanlakkimsetti how did the testing go? Note that we can stage the release into a staging, non-snapshot, repository if that makes things simpler for you. |
@sbordet - things are looking pretty good within the IDE. Overnight (for me) last night we got some positive reports based on the respun builds using 10.0.5 snapshot. IDE builds now are free of slf4j and the Help system works. Here are the report links:
Thank you again for the fast turnaround times on this. The Eclipse Project and SimRel participants will collectively respin for release once we get the final 10.0.5 from Jetty. Thanks! |
@jonahgraham thanks! We are resuming the Jetty release process, will let you know here when it's completed. |
@jonahgraham Jetty 10.0.5 release is now in maven central. |
Thank you! Let the Eclipse IDE respins begin :-) |
Jetty version
10.0.x
Java version/vendor
(use: java -version)
All
OS type/version
All
Description
The jetty JARs are packaged as OSGi bundles. The ones that require slf4j have an Import-Package header in their META-INF/MANIFEST.MF that have the following specified:
When using such JARs as bundles in an OSGi framework this forces the installation of a the slf4j 2.0 (which currently is only available as alpha) in order to resolve the jetty bundles. I've been told jetty should work with the current stable released versions of slf4j (version 1.x). If this is true then the imports should be updated to include the minimum version jetty must have.
Also, if slf4j is entirely optional then the imports should be declared as optional (
resolution:=optional
)The text was updated successfully, but these errors were encountered: