Before starting, I would like to say that I already tried the solution offered in spring-boot-devtools reloading changes in the maven maven module , which did not work for me.
Problem:
I have a multi-module Spring boot project of this kind:

The launcher has a Maven dependency on the GUI module. I am running the Spring Boot application from the main method in startup .
When I launch the application and modify any HTML file in the GUI module, the spring-boot-devtools does not perform a live reload of these changes for my application. Even manual restart of the launcher is not supported. I need to compile the GUI manually and then run launcher again.
What I tried:
- I tried to determine the
spring-boot-devtools first in the parent pom.xml , then only in the GUI module, and then in both at the same time. - I tried adding
spring.devtools.restart.additional-paths=../gui to my application.properties file, as suggested in spring-boot-devtools reloading changes to several maven modules . This does cause a reboot (according to the log), but these changes just don't apply to the GUI dependency jar file. In addition, before I even made this project in a multi-module, I didnβt need to reload just because of HTML files (nothing compiles), and I could immediately see the changes.
I use the Netbeans GUI if that helps. I also tried to run the project from the command line without success. Maven packaging on all modules is installed on the jar .
spring spring-boot spring-boot-devtools
Saraph
source share