Following using-live-reload documentation, the goal camel:run fails with the following error:
[INFO] Starting Camel ...
Unknown option: -watch
Apache Camel Runner takes the following options
-h or -help = Displays the help screen
-r or -routers <routerBuilderClasses> = Sets the router builder classes which will be loaded while starting the camel context
-d or -duration <duration> = Sets the time duration (seconds) that the application will run for before terminating.
-dm or -durationMaxMessages <durationMaxMessages> = Sets the duration of maximum number of messages that the application will process before terminating.
-di or -durationIdle <durationIdle> = Sets the idle time duration (seconds) duration that the application can be idle before terminating.
-t or -trace = Enables tracing
-ts or -traceStandby = Enables tracing standby
-e or -exitcode <exitcode> = Sets the exit code if duration was hit
-pl or -propertiesLocation <propertiesLocation> = Sets location(s) to load properties, such as from classpath or file system.
Is it a documentation issue or an actual bug?
The bug can be reproduced like this:
git checkout https:cd camel-examples/examples/routeloader
mvn package && camel:run -Dcamel.fileWatcherDirectory=src/main/resources/myroutes