Pin the JAXB runtime that Ehcache 3 reads ehcache.xml with

Proprietary

Ehcache 3.10 depends on org.glassfish.jaxb:jaxb-runtime:[2.2,3), and Maven resolves that range to a 2.4.0 beta whose own dependencies are not on Maven Central. On Java 9 and later, which have no JAXB of their own, Ehcache 3 then fails to read its XML configuration. This adds jaxb-runtime 2.3.9 beside each org.ehcache:ehcache dependency, in the same scope, unless the build already declares or manages jaxb-runtime, as Spring Boot's dependency management does.

io.moderne.java.ehcache.PinJaxbRuntimeForEhcache3
mod run . --recipe=io.moderne.java.ehcache.PinJaxbRuntimeForEhcache3

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.