Does this happen using Hibernate 5.0.6? If so, then please create a pull request that updates or adds a test to org.hibernate.jpa.test.packaging that reproduces your issue.