【发布时间】:2021-04-08 18:40:18
【问题描述】:
我有一个基于 maven 的应用程序,我使用 exec-maven-plugin 运行 mvn compile exec:java。如何配置它以便在检测到文件更改时重新启动应用程序?
【问题讨论】:
-
热重载会帮助你吗?
标签: java maven exec-maven-plugin
我有一个基于 maven 的应用程序,我使用 exec-maven-plugin 运行 mvn compile exec:java。如何配置它以便在检测到文件更改时重新启动应用程序?
【问题讨论】:
标签: java maven exec-maven-plugin
如果 maven-compiler-plugin:compile 编译更改的源,它会创建文件.../target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst。
您可以将您的exec-maven-plugin 放入Maven profile 并通过<file>/<exists> 激活它。
【讨论】: