luigidemasi commented on code in PR #213:
URL: https://github.com/apache/camel-kit/pull/213#discussion_r4736320203


##########
kit/camel-kit-core/src/main/resources/skills/camel-migrate/SKILL.md:
##########
@@ -363,6 +363,8 @@ matrix in `camel-brainstorm/guides/version-selection.md` 
for community choices.
 and `project.*` are observations. If modules disagree, show the conflicting 
modules and ask which destination
 applies. An explicit common destination resolves the question. Never select a 
downstream build from a source suffix.
 
+**Red Hat Build of Apache Camel (BOM-first selection):** When migrating a Red 
Hat product source (detected by `.redhat-*` or `.fuse-*` version qualifiers, or 
Red Hat BOMs) to Spring Boot runtime, use BOM-first selection. Red Hat Camel 
core and Red Hat Camel Spring Boot BOM have separate release streams and do not 
always share the same version qualifier (Issue #51). Query available 
`com.redhat.camel.springboot:camel-spring-boot-bom` versions from configured 
Red Hat repositories. For each candidate BOM, resolve its effective dependency 
management using `mvn help:effective-pom` to extract the managed Camel core 
version, Spring Boot framework version, and catalog provider coordinates. 
Present BOM version options to the user (not Camel core versions). After 
selection, verify the BOM resolves before persisting. For Camel versions 
4.15.0+, also check the `camel-parent` POM for Spring Boot version if the BOM 
does not explicitly manage `spring-boot-dependencies`. Record 
`target.applicationBo
 m`, `target.camelVersion`, `target.springBootVersion`, and `target.catalogBom` 
together in `.camel-kit/config.properties`.

Review Comment:
   **P1 — Query the published platform BOM.** The group in this instruction 
returns HTTP 404 from Red Hat GA. The POM attached to #51 imports 
`com.redhat.camel.springboot.platform:camel-spring-boot-bom`. Its public 
metadata lists `4.14.4.redhat-00010`. The starter parent for that release 
specifies Camel core `4.14.4.redhat-00008` and Spring Boot `3.5.11`, and the 
catalog provider is published under `org.apache.camel.springboot`. The proposed 
example’s `4.14.2.redhat-00010` BOM and provider also returned 404. Please 
reuse the verified example in the migration docs and correct the earlier 
source-detection bullet that repeats the same group. [BOM 
metadata](https://maven.repository.redhat.com/ga/com/redhat/camel/springboot/platform/camel-spring-boot-bom/maven-metadata.xml)
 · [Starter 
parent](https://maven.repository.redhat.com/ga/org/apache/camel/springboot/spring-boot/4.14.4.redhat-00010/spring-boot-4.14.4.redhat-00010.pom)
 · [Provider POM](https://maven.repository.redhat.com/ga/o
 
rg/apache/camel/springboot/camel-catalog-provider-springboot/4.14.4.redhat-00010/camel-catalog-provider-springboot-4.14.4.redhat-00010.pom)
   
   _AI-generated by Codex on behalf of @luigidemasi._



##########
kit/camel-kit-core/src/main/resources/skills/camel-brainstorm/guides/version-selection.md:
##########
@@ -179,6 +179,48 @@ not supported by this distribution.
 
 ---
 
+## Red Hat Build of Apache Camel (BOM-First Selection)
+
+**When to use:** When migrating from a Red Hat product source (detected by 
`.redhat-*` or `.fuse-*` version qualifiers) to Spring Boot runtime.
+
+**Important:** Red Hat Camel core and Red Hat Camel Spring Boot BOM have 
separate release streams. A Camel core version like `4.14.4.redhat-00008` 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 Red Hat Spring Boot BOM versions from configured Red Hat 
repositories
+2. For each BOM, resolve its managed versions using `mvn help:effective-pom`
+3. Extract: managed Camel core version, Spring Boot framework version, catalog 
provider
+4. For Camel 4.15.0+, also check `camel-parent` POM for Spring Boot version
+5. Present BOM options to user, showing managed versions
+6. Verify selected BOM resolves before persisting
+
+### Storing Red Hat Selection
+
+For Red Hat Spring Boot migrations:
+
+```properties
+project.runtime=spring-boot
+project.platformBomVersion={{SELECTED_REDHAT_BOM_VERSION}}
+project.camelVersion={{MANAGED_CAMEL_VERSION}}
+project.springBootVersion={{MANAGED_SPRING_BOOT_VERSION}}
+project.catalogBom={{MANAGED_CATALOG_PROVIDER_GAV}}

Review Comment:
   **P1 — Preserve source discovery when recording the destination.** I ran 
`init --here --ai claude` on the POM and route from #51. Init recorded the 
source BOM `3.20.1.redhat-00109` and Spring Boot `2.7.18`. Applying this 
guide’s example made `target --migration` exit 1 for a missing 
`target.camelVersion`. Plain `target` also exited 1 because the overwritten 
platform version disagreed with the source BOM GAV. Please keep selection in 
`camel-migrate`, preserve `project.*`, and write the full `target.*` profile. 
The existing migration docs show the working fields. [Migration 
configuration](https://github.com/apache/camel-kit/blob/54223a284d2b72e1614eff345486551357f51689/docs/modules/ROOT/pages/migration.adoc#L44-L71)
   
   _AI-generated by Codex on behalf of @luigidemasi._



##########
kit/camel-kit-core/src/main/resources/skills/camel-brainstorm/guides/version-selection.md:
##########
@@ -179,6 +179,48 @@ not supported by this distribution.
 
 ---
 
+## Red Hat Build of Apache Camel (BOM-First Selection)
+
+**When to use:** When migrating from a Red Hat product source (detected by 
`.redhat-*` or `.fuse-*` version qualifiers) to Spring Boot runtime.

Review Comment:
   **P1 — Gate Red Hat lookup on the chosen destination.** A Fuse or Red Hat 
Camel 3 source can migrate to community Spring Boot. This condition, also 
repeated in `camel-migrate`, tells the agent to query and offer vendor BOMs in 
that case. It also misses a community source with an explicitly selected Red 
Hat destination. Key this branch on the user’s chosen target distribution and 
runtime. Please cover both source/destination combinations in the regression 
fixture.
   
   ```suggestion
   **When to use:** After the user selects Red Hat Build of Apache Camel on 
Spring Boot as the migration destination.
   ```
   
   _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,26 @@ 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.
+
+**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**, create a `MIG-###` row:

Review Comment:
   **P2 — Surface dependency compatibility checks in direct migrations too.** 
Direct mode skips the R1 analysis guide containing this instruction. The 
original POM includes `activemq-client`, `activemq-broker`, and `activemq-pool` 
without explicit versions, so this affects the reported case. Move dependency 
detection to the shared analysis step, carry unresolved compatibility into the 
direct migration note, and keep the `MIG-###` row for planned migrations. 
Document what the user will be asked to verify in the migration page.
   
   _AI-generated by Codex on behalf of @luigidemasi._



##########
kit/camel-kit-core/src/main/resources/skills/camel-brainstorm/guides/version-selection.md:
##########
@@ -179,6 +179,48 @@ not supported by this distribution.
 
 ---
 
+## Red Hat Build of Apache Camel (BOM-First Selection)
+
+**When to use:** When migrating from a Red Hat product source (detected by 
`.redhat-*` or `.fuse-*` version qualifiers) to Spring Boot runtime.
+
+**Important:** Red Hat Camel core and Red Hat Camel Spring Boot BOM have 
separate release streams. A Camel core version like `4.14.4.redhat-00008` 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 Red Hat Spring Boot BOM versions from configured Red Hat 
repositories
+2. For each BOM, resolve its managed versions using `mvn help:effective-pom`
+3. Extract: managed Camel core version, Spring Boot framework version, catalog 
provider

Review Comment:
   **P2 — Use starter release metadata to complete the target.** I ran Maven’s 
`help:effective-pom` on the published `4.14.4.redhat-00010` platform BOM. Its 
2,207 managed entries include the starter and Spring Boot, but omit both 
`camel-core-engine` and `camel-catalog-provider-springboot`. An agent following 
this extraction step cannot fill in the profile from that model. Use the 
selected starter parent or resolved dependency tree for the core version, and 
verify the provider separately against the published release. Please cover the 
case where the BOM resolves but the provider is missing. [Starter 
parent](https://maven.repository.redhat.com/ga/org/apache/camel/springboot/spring-boot/4.14.4.redhat-00010/spring-boot-4.14.4.redhat-00010.pom)
   
   _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]

Reply via email to