mardi 4 avril 2017

Uber jar with ehcache breaks with Swagger

For a Dropwizard application, a Uber-jar is created using maven-shade-plugin. When I try to start it, the Bootstrap class loading done by swagger (dropwizard-swagger bundle) breaks trying to load the classes inside ehcache jar. These classes have a custom class loader, and are inside a folder in the jar with a different extension (.class_terracotta). - Is there a way to tell Swagger/Reflections to use a Custom classloader so that it can resolve these classes? - Is there a way to exclude the classes from the scanning, so that it does not attempt the loading?





Aucun commentaire:

Enregistrer un commentaire