smongiar opened a new pull request, #23783: URL: https://github.com/apache/camel/pull/23783
Cherry-pick of #23781 to `camel-4.18.x`. ## Summary - The `--kamelets-version` option in `camel export` was hardcoded to a compile-time default from `parent/pom.xml` - `VersionHelper.extractKameletsVersion()` can detect the actual version from the classpath, but was never called because the field was always pre-initialized - Remove the compile-time default so `extractKameletsVersion()` runs at runtime - Add null-check in `runSilently()` which runs before `resolveDependencies()` ## Test plan - [x] Verified regex matches versioned jar names including qualifiers - [x] Falls back to compiled-in default when no kamelets jar on classpath (same behavior as before) -- 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]
