As part of the evolution of my software I'm trying to move Spring's configuration from XML to annotation-based configuration (I found it easier to manipulate certain configuration elements).
All works fine as long as I'm running unit tests in Maven, but when I'm trying to use the produced signed jar from another module of my project, I get errors stating that signer information from a CGLIB enhanced class doesn't match other classes in the same package.
Looking into the matter I could find that apparently Spring will always use CGLIB to enhance @Configuration classes, and then that CGLIB doesn't seem to play nice with signed jars since its dynamically created classes reside in the same package as the original.
Has anyone figured a way to use Java Configuration in signed jars ?
PS: I double checked the package name isn't present anywhere else ;)
Aucun commentaire:
Enregistrer un commentaire