Hi

I just created a tag for the 3.20.4 release so you can use this
https://github.com/apache/camel-examples/tree/camel-examples-3.20.4



On Thu, May 11, 2023 at 9:49 PM Claus Ibsen <claus.ib...@gmail.com> wrote:

> Hi
>
> Those examples on main branch is for the main branch camel-core which
> currently is for Camel v4.
>
> If you want to run Camel 3.20.x examples then use the branch for that
> https://github.com/apache/camel-examples/tree/camel-3.20.x/examples
>
> We don't tag all the examples for every release (there is just soo much
> work), so you can set the camel version to 3.20.4 in the pom.xml file.
>
> Also if you want to try Camel then Camel JBang is also a great new
> fantastic way
> https://camel.apache.org/manual/camel-jbang.html
>
> You can use Camel JBang as a CLI to run and also introspect existing
> running Camels and much more to come.
>
>
>
> On Thu, May 11, 2023 at 7:14 PM Fyodor Kravchenko <feddkr...@hotmail.com>
> wrote:
>
>> 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
>>
>>
>
> --
> Claus Ibsen
> -----------------
> @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>


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

Reply via email to