You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/08/24 11:58:00 UTC
[jira] [Comment Edited] (CAMEL-18400) jbang does not use correct camel version
[ https://issues.apache.org/jira/browse/CAMEL-18400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17584213#comment-17584213 ]
Claus Ibsen edited comment on CAMEL-18400 at 8/24/22 11:57 AM:
---------------------------------------------------------------
All the versions going back to 3.13.0 worked for me
~/workspace/deleteme/yellow ❯ jbang --fresh -Dcamel.jbang.version=3.13.0 camel@apache/camel run *
[jbang] Resolving dependencies...
[jbang] Artifacts used for dependency management:
org.apache.camel:camel-bom:pom:3.13.0
[jbang] org.apache.camel:camel-jbang-core:jar:3.13.0
org.apache.camel.kamelets:camel-kamelets:jar:0.8.1
org.apache.camel.kamelets:camel-kamelets-utils:jar:0.8.1
Done
[jbang] Dependencies resolved
[jbang] Building jar...
Starting Camel JBang!
A new lock file was created on /Users/davsclaus/workspace/deleteme/yellow/./.run14454802692800644920.camel.lock. Delete this file to stop running
13:57:15.735 [main] INFO org.apache.camel.main.BaseMainSupport - Auto-configuration summary
13:57:15.737 [main] INFO org.apache.camel.main.BaseMainSupport - camel.main.lightweight=true
13:57:15.737 [main] INFO org.apache.camel.main.BaseMainSupport - camel.main.routesIncludePattern=file:bar.yaml
13:57:15.737 [main] INFO org.apache.camel.main.BaseMainSupport - camel.main.name=CamelJBang
13:57:15.737 [main] INFO org.apache.camel.main.BaseMainSupport - camel.component.kamelet.location=classpath:/kamelets,github:apache:camel-kamelets
13:57:16.314 [main] INFO org.apache.camel.impl.engine.AbstractCamelContext - Routes startup summary (total:2 started:2)
13:57:16.314 [main] INFO org.apache.camel.impl.engine.AbstractCamelContext - Started route1 (file-watch://.)
13:57:16.314 [main] INFO org.apache.camel.impl.engine.AbstractCamelContext - Started route2 (timer://yaml2)
13:57:16.314 [main] INFO org.apache.camel.impl.engine.AbstractCamelContext - Apache Camel 3.13.0 (CamelJBang) started in 558ms (build:18ms init:35ms start:505ms)
13:57:16.314 [main] INFO org.apache.camel.impl.engine.AbstractCamelContext - Lightweight mode enabled. Performing optimizations and memory reduction.
13:57:17.328 [Camel (CamelJBang) thread #3 - timer://yaml2] INFO route2 - Hello Camel from yaml
13:57:18.324 [Camel (CamelJBang) thread #3 - timer://yaml2] INFO route2 - Hello Camel from yaml
^C13:57:18.776 [main] INFO org.apache.camel.impl.engine.AbstractCamelContext - Apache Camel 3.13.0 (CamelJBang) shutting down (timeout:45s)
13:57:18.785 [main] INFO org.apache.camel.impl.engine.AbstractCamelContext - Routes shutdown summary (total:2 stopped:2)
13:57:18.785 [main] INFO org.apache.camel.impl.engine.AbstractCamelContext - Stopped route2 (timer://yaml2)
13:57:18.786 [main] INFO org.apache.camel.impl.engine.AbstractCamelContext - Stopped route1 (file-watch://.)
13:57:18.787 [main] INFO org.apache.camel.impl.engine.AbstractCamelContext - Apache Camel 3.13.0 (CamelJBang) shutdown in 11ms (uptime:2s978ms)
~/workspace/deleteme/yellow ❯
was (Author: davsclaus):
All the versions going back to 3.13.0 worked for me
~/workspace/deleteme/yellow ❯ jbang --fresh -Dcamel.jbang.version=3.13.0 camel@apache/camel run * 17s
[jbang] Resolving dependencies...
[jbang] Artifacts used for dependency management:
org.apache.camel:camel-bom:pom:3.13.0
[jbang] org.apache.camel:camel-jbang-core:jar:3.13.0
org.apache.camel.kamelets:camel-kamelets:jar:0.8.1
org.apache.camel.kamelets:camel-kamelets-utils:jar:0.8.1
Done
[jbang] Dependencies resolved
[jbang] Building jar...
Starting Camel JBang!
A new lock file was created on /Users/davsclaus/workspace/deleteme/yellow/./.run14454802692800644920.camel.lock. Delete this file to stop running
13:57:15.735 [main] INFO org.apache.camel.main.BaseMainSupport - Auto-configuration summary
13:57:15.737 [main] INFO org.apache.camel.main.BaseMainSupport - camel.main.lightweight=true
13:57:15.737 [main] INFO org.apache.camel.main.BaseMainSupport - camel.main.routesIncludePattern=file:bar.yaml
13:57:15.737 [main] INFO org.apache.camel.main.BaseMainSupport - camel.main.name=CamelJBang
13:57:15.737 [main] INFO org.apache.camel.main.BaseMainSupport - camel.component.kamelet.location=classpath:/kamelets,github:apache:camel-kamelets
13:57:16.314 [main] INFO org.apache.camel.impl.engine.AbstractCamelContext - Routes startup summary (total:2 started:2)
13:57:16.314 [main] INFO org.apache.camel.impl.engine.AbstractCamelContext - Started route1 (file-watch://.)
13:57:16.314 [main] INFO org.apache.camel.impl.engine.AbstractCamelContext - Started route2 (timer://yaml2)
13:57:16.314 [main] INFO org.apache.camel.impl.engine.AbstractCamelContext - Apache Camel 3.13.0 (CamelJBang) started in 558ms (build:18ms init:35ms start:505ms)
13:57:16.314 [main] INFO org.apache.camel.impl.engine.AbstractCamelContext - Lightweight mode enabled. Performing optimizations and memory reduction.
13:57:17.328 [Camel (CamelJBang) thread #3 - timer://yaml2] INFO route2 - Hello Camel from yaml
13:57:18.324 [Camel (CamelJBang) thread #3 - timer://yaml2] INFO route2 - Hello Camel from yaml
^C13:57:18.776 [main] INFO org.apache.camel.impl.engine.AbstractCamelContext - Apache Camel 3.13.0 (CamelJBang) shutting down (timeout:45s)
13:57:18.785 [main] INFO org.apache.camel.impl.engine.AbstractCamelContext - Routes shutdown summary (total:2 stopped:2)
13:57:18.785 [main] INFO org.apache.camel.impl.engine.AbstractCamelContext - Stopped route2 (timer://yaml2)
13:57:18.786 [main] INFO org.apache.camel.impl.engine.AbstractCamelContext - Stopped route1 (file-watch://.)
13:57:18.787 [main] INFO org.apache.camel.impl.engine.AbstractCamelContext - Apache Camel 3.13.0 (CamelJBang) shutdown in 11ms (uptime:2s978ms)
~/workspace/deleteme/yellow ❯
> jbang does not use correct camel version
> ----------------------------------------
>
> Key: CAMEL-18400
> URL: https://issues.apache.org/jira/browse/CAMEL-18400
> Project: Camel
> Issue Type: Bug
> Components: camel-jbang
> Affects Versions: 3.18.1
> Reporter: Marat Gubaidullin
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 3.18.2, 3.19.0
>
>
> jbang does not use correct camel version. ex.
> 1. Execute command with camel 3.18.0, ex:
> {code:java}
> jbang -Dcamel.jbang.version=3.18.0 camel@apache/camel export --directory=export --fresh
> {code}
> 2. Then execute same command with camel 3.18.1
> {code:java}
> jbang -Dcamel.jbang.version=3.18.1 camel@apache/camel export --directory=export --fresh
> {code}
> The generated result will be with the old version 3.18.0 (ex. application.properties generated with camelCase instead of kebab-case)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)