0

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?

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197
user3690467
  • 3,049
  • 6
  • 27
  • 54

1 Answers1

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