-
Notifications
You must be signed in to change notification settings - Fork 43
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
Make Full / Web profile play nice with MicroProfile maven dependencies #138
Comments
This is a relationship Red Hat has argued against as the core profile should be able to evolve in the direction that makes sense for cloud native without worrying about impacts on other profiles or the platform. |
Thanks for looking at this Scott(s), |
Do you have any suggestions that would work better? |
Hi guys, I updated the description with a specific example where the current status quo fails to deliver consistent results for developers. Also, @starksm64 are you sure that the issue outlined here:
would still be relevant with the empty JAR for the core profile? As far as I can see, currently core profile is basically MicroProfile, i.e. jax-rs and CDI. |
As per discussion in the Platform Call on May 30th, Please let me know if I am not understanding the above correctly @starksm64 Thanks! |
Problem: Jakarta EE API dependencies do not play well with MicroProfile dependencies, even after the empty platform JARs are implemented
Let's assume that Jakarta EE 10.0.1 is a new API version of Jakarta EE 10 with #137 merged in (empty platform JARs),
and some other minor API improvements, just to set up a realistic scenario.
This will yield the following dependency tree:
As you can see above, even though the Jakarta EE API version is 10.0.1, the core profile is still 10.0.0, which may lead to subtle errors that are not readily apparent.
Proposed Solution:
As follow-up to #133, I think we can make web profile depend on core profile, thus normalizing APis.
Currently, there is a whole bunch of copy-and-paste dependencies between core profile and web profile.
With the above solution, the Core Profile dependency that's expected by the Maven resolution rules (10.0.1) would be pulled in.
Even better, if a future version of MicroProfile provides a later version of Core Profile (and it's APIs), that would also work as expected, if the MicroProfile dependency would be put first in the pom.xml. This is also consistent with maven resolution rules, and thus would be exactly what developers would expect.
AB#91
The text was updated successfully, but these errors were encountered: