luigidemasi commented on code in PR #213:
URL: https://github.com/apache/camel-kit/pull/213#discussion_r4737331912
##########
kit/camel-kit-core/src/main/resources/skills/camel-brainstorm/guides/version-selection.md:
##########
@@ -179,6 +179,51 @@ not supported by this distribution.
---
+## Red Hat Build of Apache Camel (BOM-First Selection)
+
+**When to use:** After the user selects Red Hat Build of Apache Camel on
Spring Boot as the migration destination.
+
+**Important:** Red Hat Camel core and Red Hat Camel Spring Boot BOM have
separate release streams. A Camel core version might exist, but the Spring Boot
BOM at that exact version might not. Always select from available BOM versions,
not Camel core versions (Issue #51).
+
+### Selection Process
+
+1. Query available
`com.redhat.camel.springboot.platform:camel-spring-boot-bom` versions from
configured Red Hat repositories
+2. For each candidate BOM, verify it resolves using `mvn dependency:get`
+3. Use the selected starter parent POM to extract the Camel core version and
Spring Boot framework version
+4. Verify the catalog provider (typically
`org.apache.camel.springboot:camel-catalog-provider-springboot`) is published
+5. For newer Camel versions, also check `camel-parent` POM for Spring Boot
version if the starter parent doesn't specify it
+6. Present BOM options to user, showing all managed versions
+7. Verify selected BOM, starter parent, and catalog provider all resolve
before persisting
+
+### Storing Red Hat Selection
+
+For Red Hat Spring Boot migrations, preserve `project.*` fields and write
`target.*` fields:
+
+```properties
+# Preserve project.* fields (source discovery)
+# Write only target.* fields (migration destination)
+target.runtime=spring-boot
+target.applicationBom={{PLATFORM_BOM_FULL_GAV}}
+target.camelVersion={{CAMEL_CORE_FROM_STARTER_PARENT}}
+target.springBootVersion={{SPRING_BOOT_FROM_STARTER_PARENT}}
+target.catalogBom={{CATALOG_PROVIDER_FULL_GAV}}
+```
+
+**Example** (from verified Red Hat release):
+```properties
+target.runtime=spring-boot
+target.applicationBom=com.redhat.camel.springboot.platform:camel-spring-boot-bom:4.14.4.redhat-00010
+target.camelVersion=4.14.4.redhat-00008
+target.springBootVersion=3.5.11
+target.catalogBom=org.apache.camel.springboot:camel-catalog-provider-springboot:4.14.4.redhat-00010
+```
Review Comment:
**P1 — Remove the concrete release example from the installed guide.**
`ResourceConsistencyTest.catalogGuidesUseDistributionVersionsOrObservedResults`
now fails on this file. Removing just this block made the same test pass. The
five symbolic fields immediately above already show what to save, and the
migration page already contains this verified release. Please keep the example
there and retain the test. [Consistency
test](https://github.com/apache/camel-kit/blob/8e1b3b0150b62cd091cf0c740ac4ff6fb6cce4e0/kit/camel-kit-core/src/test/java/org/apache/camel/kit/generator/ResourceConsistencyTest.java#L195-L201)
_AI-generated by Codex on behalf of @luigidemasi._
##########
kit/camel-kit-core/src/main/resources/skills/camel-migrate/guides/migration-analysis.md:
##########
@@ -74,6 +74,28 @@ At minimum, create separate rows for every discovered
inbound and outbound inter
code path, failure/retry/dead-letter behavior, security boundary,
ordering/idempotency behavior, and stated SLA. Missing
evidence is itself an `Unknown` row. Do not collapse these into a blanket "API
compatible" entry.
+### Red Hat Ecosystem Dependencies (Issue #51)
+
+When migrating from Red Hat product sources (Fuse, Red Hat Build of Apache
Camel), dependencies on other Red Hat ecosystem projects (ActiveMQ/AMQ,
Apicurio, 3scale) should be documented as behavioral assumptions with version
compatibility warnings. This applies to both planned migrations (R1 analysis)
and direct migrations (carried into the migration note).
+
+**Policy**: Version matching for non-Camel ecosystem dependencies is the
user's responsibility. The migration records their presence and warns about
potential incompatibility, but does not prescribe specific versions.
+
+**When ecosystem dependencies are detected** (in both planned and direct
modes), create a `MIG-###` row or migration note entry:
+- **Category**: `Dependency`
+- **Status**: `Inferred` (detected, but not verified for target compatibility)
+- **Validation**: "Verify version compatibility with target Camel version"
+- **Impact**: "Incompatible version may cause runtime failures"
+
+**Direct mode**: Carry unresolved ecosystem dependency compatibility checks
into the direct migration note with the same structure. Document what the user
will be asked to verify in the migration documentation.
Review Comment:
**P2 — Put dependency discovery on the direct-mode path.** This sentence is
inside R1. The dispatcher explicitly skips R1 for direct migrations, and the
Camel Phase 2 guide takes the Step 4 summary as input. None of those steps
tells the agent to surface the three ActiveMQ dependencies in the #51 POM.
Record unresolved dependency compatibility in the shared Step 4 summary, carry
it into the direct migration note, and let R1 turn it into a `MIG-###` row for
planned migrations. Please add the corresponding user-facing guidance to the
Antora migration page. [Direct-mode
dispatch](https://github.com/apache/camel-kit/blob/8e1b3b0150b62cd091cf0c740ac4ff6fb6cce4e0/kit/camel-kit-core/src/main/resources/skills/camel-migrate/SKILL.md#L387-L391)
· [Phase 2
input](https://github.com/apache/camel-kit/blob/8e1b3b0150b62cd091cf0c740ac4ff6fb6cce4e0/kit/camel-kit-core/src/main/resources/skills/camel-migrate/guides/camel-version-phase2.md#L378-L381)
_AI-generated by Codex on behalf of @luigidemasi._
--
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]