I have a maven based application which I run with mvn compile exec:java
using the exec-maven-plugin. How can I configure it so that the application restarts when there are file changes detected?
Asked
Active
Viewed 335 times
0

Mark Rotteveel
- 100,966
- 191
- 140
- 197

user3690467
- 3,049
- 6
- 27
- 54
-
will hot reload help you somehow? – Antoniossss Jan 02 '21 at 11:18
1 Answers
0
If maven-compiler-plugin:compile
compiles changed sources it creates the file .../target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
.
You can put your exec-maven-plugin
into a Maven profile and activate it by <file>/<exists>
.

Gerold Broser
- 14,080
- 5
- 48
- 107