luigidemasi opened a new pull request, #30192: URL: https://github.com/apache/camel/pull/30192
Backport CAMEL-26926 from #29854 (original author @luigidemasi), via the reviewed 4.22 backport #29905, to `camel-4.18.x` for 4.18.6. Spring Boot and Quarkus catalogs now report the resolved Camel core version and read model schemas from the selected artifacts; a missing model cannot fall back to the running CLI's catalog. Runtime dependency coordinates retain their provider version. Quarkus rejects missing catalog versions/artifacts, while the existing Spring Boot download fallback is retained. This is an adapted backport and requires normal review: - Includes the missing CAMEL-23190 prerequisite (#21980, `a2cb62026cae`): `DefaultCamelCatalog.getCatalogVersion()` delegates to its version manager, with the corresponding `DefaultVersionManager` recursion fix and upstream tests. - Carries only the necessary Main-loader correction from CAMEL-23186 (`472343de0f72`), keeping the running catalog API and using the downloaded catalog for resources. The old 4.18 path tried to instantiate `DefaultCamelCatalog` as a runtime provider. - Preserves the existing 4.18 public loader signatures, Quarkus null-version/default-group behavior, and older-version `.Final` handling. Adapts resolution to 4.18's Maven downloader; no dependency additions. - Ports regression coverage to the existing export and MCP APIs. Export tests isolate their home directory from installed CLI plugins. Without an explicit `--camel-version`, Spring Boot export/run now uses the resolved core version; explicit overrides remain effective. Upgrade notes for 4.18.6 and 4.22.3 are in #29903 on `main`; merge that documentation after this backport. Validation (Maven 3.9.12, JDK 21, Java 17 target): - Full repository `mvn -B -ntp -Dmaven.build.cache.enabled=false clean install -DskipTests`: all 657 modules passed, including documentation generation; no unexpected generated changes. - Catalog suite: 964 tests; CLI core suite: 266 tests; MCP suite: 1 regression test exercising repeated mixed-runtime calls. All passed with zero failures/errors/skips and retries disabled. CLI tests used a temporary home and the freshly built 4.18 launcher on PATH, avoiding installed newer plugins and the system CLI. - Against the original 4.18 loader, 5 of 7 applicable runtime/export cases fail. Three deliberate regressions (export using the CLI version, parent resource leakage, and fallback for an absent model) were each detected. - Final packaged MCP runner: 1,923 schemas compared byte for byte with the released artifacts; 16 real stdio tool calls passed across Spring Boot, Quarkus, selected-version Main, and current-version Main. - Formatting/import sorting, `git diff --check`, and exact-commit Antora validation passed. An independent read-only code review found no introduced defects. The full reactor's tests were skipped; the module suites above ran separately. A Java 17 runtime was not tested locally; compilation targets Java 17. Hosted CI is separate from these local results. Generated by Codex on behalf of @luigidemasi via /oss-backport-pr. -- 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]
