Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-21372

Camel JBang Export/Run are not working based on external camel-version setting

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.8.0
    • 4.8.2, 4.9.0
    • camel-jbang
    • None
    • Unknown
    • Regression

    Description

      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:

      camel export app/test.yaml
      

      This exception is raised.

      The same happens with:

      camel run app/test.yaml
      

      If we unset the camel-version:

      camel config unset camel-version

      then

      camel export app/test.yaml
      

      works fine.

      I guess the issue could be the way how the method Run.runCustomCamelVersion is called, basically loosing every previous relationship with the spec object

       

      Attachments

        1. jbang-export-issue.log
          2 kB
          Salvatore Mongiardo

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              smongiar Salvatore Mongiardo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: