One hack would be update the hibernate plugin library asm.jar and with asm-3.3.jar. You need to check if Hiberate has specific issue using asm-3.3.jar.
If that won't work then few things I can think of
- Modularize (move hibernate related class as sub project and restrict the library to subproject)
- If the above is not possible then figure a place within the call stack to manipulate classloader cache (discard the loaded classes and load from specific jar and so on). Personally this would be painful to maintain.