Skip to content

Commit 4878260

Browse files
authored
Merge pull request #49626 from xstefank/watchFiles-option-docs
Add docs for the watchedFiles paramater
2 parents bef486d + feae09f commit 4878260

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/src/main/asciidoc/maven-tooling.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,16 @@ With this configuration the logs will look like
326326
[DEBUG] Launching JVM with command line: /home/<username>/jdk/bin/java -Dquarkus-internal.serialized-app-model.path=/home/<username>/app/target/quarkus/bootstrap/dev-app-model.dat -javaagent:/home/<username>/.m2/repository/io/quarkus/quarkus-class-change-agent/{quarkus-version}/quarkus-class-change-agent-{quarkus-version}.jar -XX:TieredStopAtLevel=1 -agentlib:jdwp=transport=dt_socket,address=localhost:5005,server=y,suspend=n --enable-native-access=ALL-UNNAMED --add-modules=jdk.incubator.vector --enable-preview -Djava.util.logging.manager=org.jboss.logmanager.LogManager -jar /home/<username>/app/target/acme-app-dev.jar
327327
----
328328

329+
=== Hot Reload of the Maven process
330+
331+
Sometimes you may want to reload the whole Maven process in order to pick up changes in the `pom.xml` file or to add/remove extensions. Quarkus automatically detects changes in the `pom.xml` file and restarts the Maven process if needed.
332+
333+
You can also additionally set the `watchedFiles` parameter to the set of files that are also monitored for changes. This is particularly useful if you are developing a Quarkus extension or any other library that is being used as a dependency in your testing Quarkus application. You can set the `watchedFiles` to the installed Maven artifact in your local repository that will trigger automatic testing application reload when the extension or the library is installed:
334+
335+
:dev-additional-parameters: -DwatchedFiles=~/.m2/repository/io/quarkus/quarkus-smallrye-health/999-SNAPSHOT/quarkus-smallrye-health-999-SNAPSHOT.jar
336+
include::{includes}/devtools/dev-parameters.adoc[]
337+
:!dev-additional-parameters:
338+
329339
== Debugging
330340

331341
In development mode, Quarkus starts by default with debug mode enabled, listening to port `5005` without suspending the JVM.

0 commit comments

Comments
 (0)