Jinal-Sarvaiya opened a new pull request, #213: URL: https://github.com/apache/camel-kit/pull/213
Fixes #51 ## Summary Implements BOM-first version selection for Red Hat Build of Apache Camel Spring Boot migrations to resolve version mismatch issues. ## Problem When migrating Red Hat Camel 3.x projects to Camel 4.x Spring Boot, the migration would select a Camel core version (e.g., `4.14.4.redhat-00008`) that exists in Red Hat repositories but has no matching Spring Boot BOM. This caused build failures because Red Hat Camel core and Camel Spring Boot BOM have separate release streams and don't always share the same version qualifier. ## Solution **BOM-First Selection Strategy:** - Query available Red Hat Spring Boot BOM versions from configured repositories - Resolve each BOM's managed versions using `mvn help:effective-pom` - Extract managed Camel core version, Spring Boot framework version, and catalog provider - Present BOM version options to users (not Camel core versions) - Verify BOM resolution before persisting selection ## Addresses All Four Points from Issue #51 - [x] **1. BOM version mismatch** (Primary issue) - Implemented BOM-first selection instead of selecting Camel core version first - Example: Use BOM `4.14.2.redhat-00010` (exists) instead of `4.14.4.redhat-00008` (doesn't exist for Spring Boot) - [x] **2. Match Camel ↔ Spring Boot versions** - BOM resolution automatically extracts both managed versions together - No guessing or version mismatches - [x] **3. Spring Boot framework version selection** - Extract from BOM's managed `spring-boot-dependencies` (e.g., `3.5.11` not arbitrary `3.2.5`) - For Camel 4.15.0+, also check `camel-parent` POM if BOM doesn't specify - [x] **4. ActiveMQ and ecosystem projects** - Policy documented: record dependencies (ActiveMQ, Apicurio, etc.) as `Dependency` category - Mark as `Inferred` with validation requirements - Warn users about compatibility, don't prescribe versions - Reference Red Hat compatibility matrices ## Testing The changes are ready for testing with real Red Hat Camel 3.x → 4.x migrations once Red Hat repository access is configured. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
