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

Chapter 5. Upgrading Red Hat build of Apache Camel on Spring Boot version with Camel update recipes


Migrating the code for Apache Camel on Spring Boot often involves adapting to new Camel API changes and renaming the classes. To address this, you can use Camel update recipes based on OpenRewrite. These recipes assists with manual migrations and make it more efficient.

You can update the Red Hat build of Apache Camel on Spring Boot application using Camel JBang. Camel JBang provides the camel update command. It has two main operations:

  • run: Executes the actual update process

The update process uses the Apache Camel Open Rewrite recipes. It supports following application types:

  • Plain Camel (camel-main)
  • Camel Quarkus
  • Camel Spring Boot

Here, Camel and Camel Spring Boot updates mainly use the camel-upgrade-recipes, while Camel Quarkus updates involve both the Quarkus runtime (via Rewrite Quarkus) and Apache Camel recipes.

5.1. Running Camel Updates

To perform the update to this version, use:

$ camel update run {camelSpringBootVersion} --runtime=spring-boot
Copy to Clipboard Toggle word wrap
Note

The update commands must be executed in the project directory that contains the pom.xml file.

5.1.1. Configuration Options

You can customize the update process with several options that are available:

  • --runtime: Specifies the application type:

    • spring-boot - Camel Spring Boot applications
  • --repos: Additional Maven repositories to use during the update
  • --dry-run: Preview the changes without applying them
  • --extraActiveRecipes: Comma-separated list of additional recipe names to apply
  • --extraRecipeArtifactCoordinates: Comma-separated list of Maven coordinates for extra recipes (format: groupId:artifactId:version)
  • --help : To see all available options.

5.1.2. Updating a plain Camel application

Following example shows how to update a plain Camel application.

$ camel update run 4.10.7.redhat-00013 --runtime=camel-main --repos=https://myMaven/repo --extraActiveRecipes=my.first.Recipe,my.second.Recipe --extraRecipeArtifactCoordinates=ex.my.org:recipes:1.0.0
Copy to Clipboard Toggle word wrap

5.1.3. Updating a Spring Boot application

You can use the following command to update a Spring Boot application. You can use the -extraActiveRecipes option to run the extra Spring Boot upgrade.

$ camel update run 4.10.7.redhat-00013 --runtime=spring-boot --extraActiveRecipes=org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_3 --extraRecipeArtifactCoordinates=org.openrewrite.recipe:rewrite-spring:6.0.2
Copy to Clipboard Toggle word wrap
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

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

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

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

Red Hat 소개

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

Theme

© 2026 Red Hat
맨 위로 이동