This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 81f676a  Add doc for camel:dev maven plugin
81f676a is described below

commit 81f676aed62ca2b72fc4d7aa2979dc56aa7288db
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Sat Mar 19 15:25:53 2022 +0100

    Add doc for camel:dev maven plugin
---
 .../src/main/docs/camel-maven-plugin.adoc           | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git 
a/tooling/maven/camel-maven-plugin/src/main/docs/camel-maven-plugin.adoc 
b/tooling/maven/camel-maven-plugin/src/main/docs/camel-maven-plugin.adoc
index 3dba4ec..969bca2 100644
--- a/tooling/maven/camel-maven-plugin/src/main/docs/camel-maven-plugin.adoc
+++ b/tooling/maven/camel-maven-plugin/src/main/docs/camel-maven-plugin.adoc
@@ -3,6 +3,7 @@
 The Camel Maven Plugin supports the following goals
 
  - camel:run - To run your Camel application
+ - camel:dev - To run your Camel application in developer mode
  - camel:prepare-fatjar - To prepare your Camel application for being packaged 
as a fat-jar (such as by maven-assembly-plugin)
 
 == camel:run
@@ -93,6 +94,26 @@ The idea with the built-in logging is that you sometimes 
want to avoid messing w
 up logging, and just want a quick and easy log to console that looks good.
 
 
+== camel:dev
+
+The `camel:dev` is an extension to `camel:run` to run the Camel application in 
developer mode.
+In this mode, among others, Camel will use hot-reloading of DSL routes (xml, 
yaml and java) that are located from
+the `src/main/resources` directory.
+
+=== Options
+
+The maven plugin *dev* goal supports the following options which can be 
configured from the command line (use `-D` syntax), or defined in the `pom.xml` 
file in the `<configuration>` tag.
+
+|===
+| Parameter | Default Value | Description
+| routesDirectory | src/main/resources | To watch the directory for file 
changes which triggers a live reload of the Camel routes on-the-fly.
+| duration | -1 | Sets the time duration (seconds) that the application will 
run for before terminating. A value <= 0 will run forever.
+| durationIdle | -1 | Sets the idle time duration (seconds) duration that the 
application can be idle before terminating. A value <= 0 will run forever.
+| durationMaxMessages | -1 | Sets the duration of maximum number of messages 
that the application will process before terminating.
+| logClasspath | false | Whether to log the classpath when starting
+| loggingLevel | OFF | Whether to use built-in console logging (uses log4j), 
which does not require to add any logging dependency to your project. However, 
the logging is fixed to log to the console, with a color style that is similar 
to Spring Boot. You can change the root logging level to: FATAL, ERROR, WARN, 
INFO, DEBUG, TRACE, OFF
+|===
+
 == camel:prepare-fatjar
 
 The `camel:prepare-fatjar` goal of the Camel Maven Plugin is used to prepare 
your Camel application

Reply via email to