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

camel-yaml-dsl - Add support for spec/dependencies

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • 3.16.0
    • camel-yaml-dsl
    • None
    • Unknown

    Description

      We should be able to detect dependencies in the integration and kamelet spec files

      For example an integration can have

      apiVersion: camel.apache.org/v1
      kind: Integration
      metadata:
        name: sql-to-log.yaml
      spec:
        dependencies:
          - 'mvn:org.apache.commons:commons-dbcp2:2.9.0'
          - 'mvn:org.postgresql:postgresql:42.2.14'
        flows:
          - from:
              parameters:
                dataSource: '#bean:datasource'
              steps:
                - marshal:
                    json:
                      library: Jackson
                - log: '${body}'
              uri: 'sql:SELECT * FROM table1'
          - beans:
              - name: datasource
                properties:
                  driverClassName: org.postgresql.Driver
                  password: postgres
                  url: 'jdbc:postgresql:localhost:5432:demo'
                  username: postgres
                type: 'org.apache.commons.dbcp2.BasicDataSource'
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment