dropwizard-swagger icon indicating copy to clipboard operation
dropwizard-swagger copied to clipboard

dropwizard-swagger doesn`t work correctly when running app with oneJar

Open linach opened this issue 11 years ago • 1 comments

Hello, I am trying to use the package in a dropwizard project. I have followed the steps from the "How to use it" in the README.md file. When running the application from my IDE, it all works correctly as described. But when I run my oneJar file the http://localhost:8080/swagger doesn`t work correcly(javascript and css resources are not loaded). http://localhost:8080/api-docs returns the correct json, the problem is only in the swagger ui.

Edit: I use the gradle-one-jar plugin to build the oneJar. Probable cause is the plugin itself. See: https://github.com/dropwizard/dropwizard/issues/311 and also: https://groups.google.com/forum/#!topic/dropwizard-user/MSp3RjtJy1o

linach avatar Mar 10 '15 16:03 linach

Did you manage to make it work?I am having the same issue

brimzi avatar Feb 09 '16 08:02 brimzi