[ 
https://issues.apache.org/jira/browse/CAMEL-21372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-21372:
--------------------------------
    Summary: Camel JBang Export/Run are not working based on external 
camel-version setting  (was: Camel JBang Export/Run are not working based on 
camel-version setting)

> Camel JBang Export/Run are not working based on external camel-version setting
> ------------------------------------------------------------------------------
>
>                 Key: CAMEL-21372
>                 URL: https://issues.apache.org/jira/browse/CAMEL-21372
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jbang
>    Affects Versions: 4.8.0
>            Reporter: Salvatore Mongiardo
>            Priority: Minor
>         Attachments: jbang-export-issue.log
>
>
> The export/run command doesn't work when a "custom" _camel-version_ is set:
> camel config set 
> deps=org.apache.camel.springboot:camel-timer-starter,camel:management,camel:cli-connector
> camel config set runtime=spring-boot
> camel config set gav=com.foo:acme:1.0-SNAPSHOT
> *camel config set camel-version=4.8.x-y*
> camel config set additional-properties=openshift-maven-plugin-version=1.17.0.y
> camel config set camel-spring-boot-version=4.8.0.y
> camel init test.yaml --directory=app
> Executing:
> {code:java}
> camel export app/test.yaml
> {code}
> This 
> [exception|https://issues.redhat.com/secure/attachment/13285203/jbang-export-issue.log]
>  is raised.
> The same happens with:
> {code:java}
> camel run app/test.yaml
> {code}
> If we unset the {_}camel-version{_}:
> *camel config unset camel-version*
> then
> {code:java}
> camel export app/test.yaml
> {code}
> works fine.
> I guess the issue could be the way how the method 
> [Run.runCustomCamelVersion|https://github.com/apache/camel/blob/camel-4.8.0/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java#L838]
>  is called, basically loosing every previous relationship with the 
> [spec|https://github.com/apache/camel/blob/camel-4.8.0/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/CamelCommand.java#L40C5-L40C40]
>  object
> h3.  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to