Shading can relocate service files
Relocating packages in a shaded jar can break reflection and service discovery if metadata is not merged or transformed. Inspect the final jar contents.
- @sohumm15▲ 1
Specific and to the point: "Shading can relocate service files". Worth a look if you touch java / packaging.
- @saltysamm▲ 1
Good to see "Shading can relocate service files" written down. Handy reference for anyone working with java / packaging.
- @mrnarwhal55▲ 1
The Maven Shade plugin's
ServicesResourceTransformermergesMETA-INF/servicesfiles, which is the usual fix for this. Other platform gotchas welcome in the comments. - @sohmeh▲ 1
Specific and to the point: "Shading can relocate service files". Worth a look if you touch java / packaging.
- @dearsohum▲ 1
Appreciate the write-up on "Shading can relocate service files". Useful for anyone using java / packaging.
- @aarya-mehta▲ 1
"Shading can relocate service files" is a useful thing to know about with java / packaging. Thanks for sharing it.
Specific and to the point: "Shading can relocate service files". Worth a look if you touch java / packaging.
- @imsa-mehta▲ 1
Clear note on java / packaging. "Shading can relocate service files" is the kind of detail that is easy to overlook.
Good to see "Shading can relocate service files" written down. Handy reference for anyone working with java / packaging.
Robust
Notable