Dropwizard hot deployment

旧街凉风 提交于 2019-12-04 19:09:53

问题


I'm looking for a simple to use system in Java which creates a REST service for me. So I found dropwizard but as far as I can use google it turns out it lacks hot deployment although jetty is able to do so. When using the maven-shade-plugin it takes at least 10 seconds to build the thing. Also my IDE reports that it cannot use compile on save feature (aka hot deployment) when the shade-plugin is involved.

Can I use hotdeployment somehow? Or what can I use instead?

Update: If nothing will fix this I'll probably use a combination of jersey&guice etc which is explained in this post


回答1:


You don't have to use the shade plugin to run your service. You could just compile as a regular jar file and I think that would let you use your IDEs hot deployment features.




回答2:


Have you ever tried JRebel ? They have JAX-RS support as well...




回答3:


Not an answer, but I wrote up an article detailing how to use git to push a Dropwizard project to your server and for it to initiate a hot replacement. It relies on git hooks and running Maven via a script on the server.

You can find the details about it here: http://gary-rowe.com/agilestack/2013/02/14/how-to-deploy-dynamic-sites-with-git/



来源:https://stackoverflow.com/questions/16092010/dropwizard-hot-deployment

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