이 콘텐츠는 선택한 언어로 제공되지 않습니다.

Chapter 6. Generating a catalog


6.1. Overview

By default, every Kaoto release includes the latest Camel version available at the moment of the build, nevertheless, generating a different set of catalogs is possible.

6.2. Catalog generator CLI

Kaoto provides a Camel catalog generator CLI to ease this process, it supports the following runtimes:

  1. Main
  2. Quarkus
  3. Springboot

6.2.1. Using Camel catalog

  1. Clone the Kaoto project
  2. Navigate to the packages/catalog-generator directory
  3. Install the project dependencies:

    ./mvnw install
  4. Run the project with the following command:

    ./mvnw package; java -jar ./target/catalog-generator-0.0.1-SNAPSHOT.jar -o ./dist/camel-catalog -k 4.6.0 -m 4.6.0 -n "My Catalog"
  5. This will generate a Catalog library containing:

    1. Camel Main 4.6.0
    2. Camel Kamelets 4.6.0
  6. The resulting files will be in the packages/catalog-generator/dist/camel-catalog folder
  7. Providing that folder through a http server will make it available for using it in Kaoto

6.2.2. Creating a Catalog library with different runtimes

  1. In order to add multiple runtimes to the Catalog library, we can provide each runtime with its version using the following flags:

     -m,--main <version>               Camel Main version. If not specified,
                                       it will use the generator installed
                                       version
     -q,--quarkus <version>            Camel Extensions for Quarkus version
     -s,--springboot <version>         Camel SpringBoot version
  2. For instance, running the following command will create a Catalog library with Camel Main 4.6.0 and Camel extensions for Quarkus 3.8.0:

    ./mvnw package; java -jar ./target/catalog-generator-0.0.1-SNAPSHOT.jar -o ./dist/camel-catalog -k 4.6.0 -m 4.6.0 -q 3.8.0 -n "My Catalog"
  3. For a different Kamelets catalog version, the --kamelets or -k flag can be specified.

    ./mvnw package; java -jar ./target/catalog-generator-0.0.1-SNAPSHOT.jar -o ./dist/camel-catalog -k 4.5.0 -m 4.6.0  -n "My Catalog"

6.2.3. Instructing Kaoto to use a specific Catalog library

  1. In VSCode, go to the settings page and look for “Kaoto”

    vscode kaoto settings
  2. In the TextField, provide the URL of the index.json file that specifies the location of the subsequent catalogs, for instance, the public Kaoto catalog can be used:

    setting kaoto catalog url
  3. Restart Kaoto for the changes to have effect

    kaoto runtime selector
Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

© 2024 Red Hat, Inc.