ramu11 opened a new pull request, #9011: URL: https://github.com/apache/camel-quarkus/pull/9011
## Description Fixes #9010. ### Problem When a Camel Quarkus AWS2 application is built as a native executable together with Quarkus Amazon Services, both Camel Quarkus and Quarkus Amazon Services can register GraalVM substitutions for the same AWS SDK `ChecksumProvider` methods. This causes the native-image build to fail with a duplicate substitution error. ### Solution Update the Camel Quarkus AWS2 `ChecksumProvider` substitution to also check whether Quarkus Amazon Services' `CrtSubstitutions` is present. Camel Quarkus substitutions are now enabled only when both AWS CRT and the Quarkus Amazon Services substitution are absent. This preserves the existing Camel-only AWS2 behavior while avoiding duplicate GraalVM substitutions when Quarkus Amazon Services provides the equivalent substitution. ### Test Added an isolated native-image regression scenario to the AWS2 CloudWatch integration test by adding `quarkus-amazon-sns`. The S3 dependency is excluded from the compile-scoped AWS2 test-support dependency so that `aws-crt` remains absent and the CRT-absent substitution scenario is exercised. Verified: - `git diff --check` - AWS2 CloudWatch native build: BUILD SUCCESS - Full Maven build: BUILD SUCCESS - `./mvnw process-resources -Pformat`: SUCCESS -- 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]
