The javassist.NotFoundException is caused by a class loading issue.
As the maven project containing the classes to enhance can't be a dependency of the hibernate-enhance-maven-plugin used to build it, we need to add the path to the processed classes to the ClassLoader used by the Enhancer to search for referenced classes.
https://github.com/hibernate/hibernate-orm/pull/877
|