This is an automated email from the ASF dual-hosted git repository.
acosentino 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 edbed8f Regen for commit cb53e0db5bd56d6a4d4de7b2daa48fbd6f6c726a
edbed8f is described below
commit edbed8f03d41df33d04477db7b91a6e29549f22d
Author: oscerd <[email protected]>
AuthorDate: Tue Nov 2 08:00:19 2021 +0000
Regen for commit cb53e0db5bd56d6a4d4de7b2daa48fbd6f6c726a
Signed-off-by: GitHub <[email protected]>
---
.../modules/ROOT/pages/camel-maven-plugin.adoc | 26 ++++++++++++++++++----
1 file changed, 22 insertions(+), 4 deletions(-)
diff --git a/docs/user-manual/modules/ROOT/pages/camel-maven-plugin.adoc
b/docs/user-manual/modules/ROOT/pages/camel-maven-plugin.adoc
index 168e7fd..d7e134d 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-maven-plugin.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-maven-plugin.adoc
@@ -10,9 +10,8 @@ The Camel Maven Plugin supports the following goals
The `camel:run` goal of the Camel Maven Plugin is used to run your Camel
Spring configurations in a forked JVM from Maven.
A good example application to get you started is the Spring Example.
-[source,bash]
----
-cd examples/spring
+cd examples/camel-example-spring
mvn camel:run
----
@@ -28,7 +27,6 @@ If you want to boot up your Camel routes a little faster, you
could try the `cam
The maven plugin *run* 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.
-[width="100%",cols="2,2,6",options="header",]
|===
| Parameter | Default Value | Description
| duration | -1 | Sets the time duration (seconds) that the application will
run for before terminating. A value <= 0 will run forever.
@@ -51,7 +49,6 @@ You should add the CDI container of your choice (e.g. Weld or
OpenWebBeans) to t
From the source of Camel you can run a CDI example via
-[source,bash]
----
cd examples/camel-example-cdi
mvn compile camel:run
@@ -73,6 +70,27 @@ You can enable this in the configuration using:
</plugin>
----
+=== Using live reload of XML files
+
+You can configure the plugin to scan for XML file changes and trigger a reload
of the Camel routes which are contained in those XML files.
+
+[source,xml]
+----
+<plugin>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-maven-plugin</artifactId>
+ <configuration>
+
<fileWatcherDirectory>src/main/resources/META-INF/spring</fileWatcherDirectory>
+ </configuration>
+</plugin>
+----
+
+Then the plugin watches this directory. This allows you to edit the source
code from your editor and save the file, and have
+ the running Camel application pickup those changes.
+
+Notice its only changes of Camel routes, eg `<routes>`, or `<route>` which is
supported.
+You cannot change Spring or OSGi Blueprint `<bean>` elements.
+
== camel:prepare-fatjar