Maven-publish: Excluding transitive dependencies from a subproject in a multi-project build

For clarification, this apparently only happens with project dependencies.

Perhaps you could add the hibernate libraries as exclusions on the configuration? Alternatively you could modify the POM that’s generated to add the exclusions, as described in the comments here.

One final thing: why the exclusions? The answer to that will help identify the most appropriate solution. That’s not the say this isn’t a bug that needs fixing.