How to create a war from dropwizard app?

帅比萌擦擦* 提交于 2019-12-05 15:11:37

Dropwizard is designed to run as a JAR, not as a WAR file.

Martin Dow

It certainly goes against what Dropwizard is about and isn't exactly recommended, but if you find yourself in an environment where this is forced upon you then this might also be an option: https://github.com/twilio/wiztowar

It looks similar to the library referenced in this answer.

WizToWar - Have your cake and eat it too

WizToWar is a simple library that enables a Dropwizard service to also be deployable in a WAR container such as Tomcat.

By following the steps in the usage section below you will be able to create both a Dropwizard jar and a WAR of the same service.

It makes a lot of sense to roll out your application as a jar, but sometimes you are bounded by company/enterprise standards and you're obliged to deploy on a particular application server in production. In this case https://github.com/rvs-fluid-it/wizard-in-a-box becomes handy. Feel free to test it. I welcome feedback.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!