I'd like to introduce a AvailableSettings.XML_MAPPING_ENABLED configuration property which - when disabled skips processing all XML mapping.
Using annotations is a popular solution nowadays, and having the option to looking for any XML mapping has a good impact on bootstrap times.
Using the maven-dependency-plugin, I still see jaxb-runtime as a direct compiledependency of hibernate-core, it’s not marked as optional
Shouldn’t that be gone as well with the jaxb-api?
Good point maybe they can be marked optional now. I’m not entirely sure and this will need a bit more testing, and the matter gets a bit more complicated because of them being included in JDK8, while required in JDK11, so depending on JDK version one might have different dependency needs (Assuming the use XML mapping).
But please open a new issue, we can explore this.