I have cloned the repository and tried to run the camel-examples/examples/main-yaml executable as stated in the readme (mvn compile, mvn capel:run), but it didn't seem to work. I just didn't print anything. I've also tried to downgrade Camel in the project to the latest Camel 3 which compiled but still didn't work.

All it prints is

mvn camel:run
[INFO] Scanning for projects...
[INFO]
[INFO] ----------< org.apache.camel.example:camel-example-main-yaml >----------
[INFO] Building Camel :: Example :: Main :: YAML 4.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- camel-maven-plugin:3.20.4:run (default-cli) @ camel-example-main-yaml --- [INFO] You can skip tests from the command line using: mvn camel:run -Dmaven.test.skip=true [INFO] Using custom org.apache.camel.example.MyApplication to initiate a CamelContext
[INFO] Starting Camel ...

and that's it. I tried to modify the my-route.yaml for it to detect the new route but to no avail.

(I am trying this because I'm failing to make my own little test project, but actually the official example works worse than my own attempt. It doesn't load the route at statrup but works okay when I modify the yaml. To reiterate, the example does neither of this: neither it loads the route at startup nor at the yaml modification)

I may have java problems. In the environment I try the example:

java --version
openjdk 19.0.1 2022-10-18
OpenJDK Runtime Environment GraalVM CE 22.3.0 (build 19.0.1+10-jvmci-22.3-b08) OpenJDK 64-Bit Server VM GraalVM CE 22.3.0 (build 19.0.1+10-jvmci-22.3-b08, mixed mode, sharing)

JAVA_HOME=/xxx/graalvm-ce-java19-22.3.0

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/xxx/graalvm-ce-java19-22.3.0/bin

I have also Java 8 installed somewhere but I tried to make sure the modern java is used.

What am I doing wrong?

--fedd

Reply via email to