I ran into this same exception with maven 3.3.9 and Java 11, for a custom maven plugin that uses Hibernate 3 style mapping files. Updating to maven 3.6.3 seems to have resolved the problem.