Issue 6036: Support for Jackson3#6048
Conversation
Signed-off-by: Jens-Otto Larsen <jens-otto.larsen@nav.no>
|
Great work, thank you so much for your big contribution! ❤️ Please be aware: |
|
@reneleonhardt I'm looking into the copyright-warnings. I am not familiar with the practices here, so I'll need some guidance |
Signed-off-by: Jens-Otto Larsen <jens-otto.larsen@nav.no>
Signed-off-by: Jens-Otto Larsen <jens-otto.larsen@nav.no>
|
I'm not a Jersey maintainer, I guess glassfish-copyright-maven-plugin wants a copyright + license notice in every file, it will probably be enough to copy from another source file and change the year to 2026 for new files. |
|
Jenkins stopped working after 1h23 mins - in the middle of jersey-tests-osgi-functional (287/387). Can someone with access trigger a new build? Or should I just commit a NOOP-change ? |
Signed-off-by: Jens-Otto Larsen <jens-otto.larsen@nav.no>
Signed-off-by: Jens-Otto Larsen <jens-otto.larsen@nav.no>
|
Megabytes of logs... I remember when unit tests were only allowed to print dots, good times 😄 |
|
@jolarsen Thank you for adding the Jackson3 support! In order to avoid dependency convergence, I've also adopted Jackson 2.20 (my commit is added to your PR). In total, this should work, and all checks should be OK now. |
Signed-off-by: Maxim Nesen <senivam@gmail.com>
|
Oops, I had to re-write that because I didn't notice that the 2.20 is only applicable for Jackson annotations. |
Signed-off-by: Jens-Otto Larsen <jens-otto.larsen@nav.no>
|
@senivam Jackson3 uses com.fasterxml for jackson-annotations - and needs 2.20 for JsonFormat.POJO But lets try to find a path to complete the PR. There are many users who want to do the Jackson3-migration - which is a fair amount of changes - new coordinates, immutable mappers, builders, etc. |
|
@jolarsen , I was hoping to solve this without exclusions. Dependency convergence check should work similarly both locally and on Jenkins. It, however, requires previously built artifacts to be prepared for the check. As I'm running it with Jackson 2.20.1 adopted, it does not fail for jackson annotations convergence. |
|
When I tried locally - mvn enforcer reported problems with tests/integration/jackson-14 - but not media/json-jackson. |
|
@jolarsen OK, clear. I hope this time the build will finally pass OK. |
|
Jjenkins resigned with "pool-979-thread-1: Retried waiting for GCLocker too often allocating 1250002 words" |
|
Finally it passed fine |
|
@senivam Thanks for helping out ! |
|
Not sure why the licence check workflow fails with Error: Error response from the Eclipse Foundation 504 When running the full maven command locally I get this. |
|
@jolarsen , I wonder how you run the local check? For me, both local and remote runs end in Most probably due to Eclipse's site change. However, regarding the license, Jackson 3 (same as Jackson 2) is licensed under the Apache 2.0 license. So, if it is the only issue, I would merge it as is. |
|
@senivam I ran the mvn statement from the failing action log - here without the -U option. |
|
Here is the list of packages not automatically verified |
|
I've got the check running locally by using JDK 11 instead of JDK 21. Maven command line can be the same. They already have |
Signed-off-by: Jens-Otto Larsen <jens-otto.larsen@nav.no>
|
Running the licence check locally: I first got the same timeout as in the failing workflow. Second attempt was successful. |
|
@jolarsen This PR contains 11 commits. Not all of them look like standalone changes. May we squash everything into a single commit, or do you intentionally want to keep several commits? |
|
@mkarg perfectly ok to squash the commits. Would be useful with feedback on the choices (property naming etc), but may be more effective to merge and fix issues as they are discovered. |
New module json-jackson3 in media, examples, and performance tests. Based on the existing json-jackson module
For discussion:
Testing: Apart from updated tests in media / json-jackson3, I have done this:
Closes #6036