-
Notifications
You must be signed in to change notification settings - Fork 41.7k
Description
When I try to run my app by using only mvn spring-boot:run it complains, that it can't find the JAR files of my other modules. Which is kinda clear from a Maven's perspective.
Though I have to run cd parent && mvn clean install && cd ../webapp && mvn spring-boot:run.
But now it uses the compiled JAR files, and this makes hot reload impossible for everything that's not within the webapp module.
Is there a way, to tell Maven and/or the spring-boot-maven-plugin to just use the dependencies as they are, so it can work without precompiled JAR files, and enable hot reloading this way?
Or is there another way to get hot reload working while using plain maven from the terminal? (Eclipse is not an option, because our front-end team want to use some other editor and Eclipse only recognizes file changes when you switch back to Eclipse, open the file you edited and wait a few seconds)
We use a flat Maven module hierarchy:
parent (pom), module1 (jar), module2 (jar), webapp (war)