Hi

It works for me - mind my camel CLI client is 4.9 based

camel run --verbose --runtime=quarkus foo.java
Running using Quarkus v3.14.2 (preparing and downloading files)
Executing
"/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home/bin/java
-Dquarkus.platform.version=3.14.2
-Dquarkus.application.version=1.0-SNAPSHOT
-Dquarkus.platform.artifact-id=quarkus-bom
-Dquarkus.platform.group-id=io.quarkus.platform
-Dquarkus.application.name=jbang-run-dummy
-jar
/Users/davsclaus/workspace/deleteme/appq/.camel-jbang-run/1727266121687/target/quarkus-app/quarkus-run.jar"
__  ____  __  _____   ___  __ ____  ______
 --/ __ \/ / / / _ | / _ \/ //_/ / / / __/
 -/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \
--\___\_\____/_/ |_/_/|_/_/|_|\____/___/
2024-09-25 14:08:53,798 INFO  [org.apa.cam.qua.cor.CamelBootstrapRecorder]
(main) Apache Camel Quarkus 3.14.0 is starting
2024-09-25 14:08:53,803 INFO  [org.apa.cam.mai.MainSupport] (main) Apache
Camel (Main) 4.7.0 is starting
2024-09-25 14:08:53,850 INFO  [org.apa.cam.cli.con.LocalCliConnector]
(main) Camel JBang CLI enabled
2024-09-25 14:08:53,898 INFO  [org.apa.cam.imp.eng.AbstractCamelContext]
(main) Apache Camel 4.7.0 (camel-1) is starting
2024-09-25 14:08:53,979 INFO  [org.apa.cam.imp.eng.AbstractCamelContext]
(main) Routes startup (total:1)
2024-09-25 14:08:53,979 INFO  [org.apa.cam.imp.eng.AbstractCamelContext]
(main)     Started route1 (timer://java)
2024-09-25 14:08:53,979 INFO  [org.apa.cam.imp.eng.AbstractCamelContext]
(main) Apache Camel 4.7.0 (camel-1) started in 81ms (build:0ms init:0ms
start:81ms)
2024-09-25 14:08:54,056 INFO  [io.quarkus] (main) jbang-run-dummy
1.0-SNAPSHOT on JVM (powered by Quarkus 3.14.2) started in 0.627s.
Listening on: http://0.0.0.0:8080
2024-09-25 14:08:54,057 INFO  [io.quarkus] (main) Profile prod activated.
2024-09-25 14:08:54,057 INFO  [io.quarkus] (main) Installed features:
[camel-attachments, camel-cli-connector, camel-console, camel-core,
camel-management, camel-microprofile-health, camel-platform-http,
camel-timer, camel-xml-io-dsl, cdi, smallrye-context-propagation,
smallrye-health, vertx]
2024-09-25 14:08:54,991 INFO  [route1] (Camel (camel-1) thread #2 -
timer://java) Hello Camel from route1
2024-09-25 14:08:55,987 INFO  [route1] (Camel (camel-1) thread #2 -
timer://java) Hello Camel from route1
2024-09-25 14:08:56,987 INFO  [route1] (Camel (camel-1) thread #2 -
timer://java) Hello Camel from route1
^C2024-09-25 14:08:57,685 INFO  [org.apa.cam.imp.eng.AbstractCamelContext]
(main) Apache Camel 4.7.0 (camel-1) is shutting down (timeout:45s)
2024-09-25 14:08:57,693 INFO  [org.apa.cam.imp.eng.AbstractCamelContext]
(main) Routes stopped (total:1)
2024-09-25 14:08:57,693 INFO  [org.apa.cam.imp.eng.AbstractCamelContext]
(main)     Stopped route1 (timer://java)
2024-09-25 14:08:57,696 INFO  [org.apa.cam.imp.eng.AbstractCamelContext]
(main) Apache Camel 4.7.0 (camel-1) shutdown in 10ms (uptime:3s)
2024-09-25 14:08:57,710 INFO  [io.quarkus] (main) jbang-run-dummy stopped
in 0.038s
~/workspace/deleteme/appq ❯ camel --version

                                            ✘ INT 17s
4.9.0-SNAPSHOT
~/workspace/deleteme/appq ❯ camel version
JBang version: 0.118.0
Camel JBang version: 4.9.0-SNAPSHOT

On Tue, Sep 24, 2024 at 10:15 AM Zheng Feng <zf...@redhat.com> wrote:

> Hi,
>
> I just use "camel run --camel-version=4.9.0-SNAPSHOT --runtime=quarkus
> --verbose foo.java" and the error is "Cannot run because
> application.properties file does not exist or
> camel.main.routesIncludePattern is not configured"
>
> It is working with 4.8.0. Not sure if there has been any change recently?
>


-- 
Claus Ibsen
-----------------
@davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to