Live Reload
We assume that you are using Apache TomEE with the , starting the server by running the goal . Configure the plugin as follows in the section of :
Show code
Expand code
The configuration enables auto-reload and ensures that any change to a file with the extension (a Java recompile) triggers the TomEE server reload (you will still need to refresh the browser page). Note that if you base your project on the Vaadin CDI starter (from https://vaadin.com/start), the above configuration is already done for you.
During hotswap, the TomEE log may contain warnings about memory leaks due to the webpack server and watchdog process not being terminated. These can safely be ignored.
If a class with a annotation is removed, the route given in the annotation is still navigable after reload. Note that this is not a problem when only modifying the route of a view, without deleting the Java class.