Dropwizard: How could I get Dropwizard to hot deploy locally?

Created on 9 Dec 2015  路  5Comments  路  Source: dropwizard/dropwizard

Running 'mvn clean install' every time before starting the application is consuming alot of time. Is there a good way to set up hot deploy of an Dropwizard application in Intellij?

Most helpful comment

if I use IntelliJ and setup an Application with DropWizard main, I can debug and hit breakpoints, however if I make a change (not method sig) and save, it says compilation finished, but no changes :(

All 5 comments

Just run the Application.main method in IntelliJ. Remember to add server whatever.yml to the program arguments.
Then you can run it in debug mode and it will hotdeploy your changes, as long as you dont change any signatures or some such. Then you have to restart the application.

Way faster than running the maven commands each and every time you make a change

Thanks mate :)
start-app-in-intellij

if I use IntelliJ and setup an Application with DropWizard main, I can debug and hit breakpoints, however if I make a change (not method sig) and save, it says compilation finished, but no changes :(

Is hot deploy possible with Gradle?

Static resources should be reloaded without additional work. For Java code, you need a special JVM which allows redefine classes in runtime. For example, DCEVM.

Was this page helpful?
0 / 5 - 0 ratings