Fix #8252: Remove incorrect maven-artifact exclusion causing Debezium…#8265
Fix #8252: Remove incorrect maven-artifact exclusion causing Debezium…#8265sanjana2505006 wants to merge 2 commits intoapache:mainfrom
Conversation
…bezium native build failure
|
@jamesnetherton Whenever you get a chance, please review and let me know if any changes are needed |
|
I suspect removing the exclusion is only part of the fix. You'd need to run the native integration tests for each module in here to verify it: https://github.com/apache/camel-quarkus/tree/main/integration-test-groups/debezium There are likely additional things that need fixing... |
…sources to avoid static config initialization
|
@jamesnetherton Thank you for the feedback! I have refactored the test resources for all Debezium modules (MongoDB, MySQL, PostgreSQL, MSSQL, Oracle) to avoid static initialization of configuration properties. This should prevent the I also re-applied the I wasn't able to run the full native verification locally due to missing Docker/native tools in my environment, but I've verified that the code changes align with native best practices. Relying on the CI to confirm everything is green now. |
Not sure that's a concern here. I have never seen any issues related to that. Those Also, we maybe don't want to start shifting the test container configuration around in the project. The convention we (mostly) followed so far is that such things are defined as constants and then queried in the |
This PR addresses the
ClassNotFoundException: org.apache.maven.artifact.versioning.InvalidVersionSpecificationExceptionencountered during native compilation of Debezium extensions.The issue was traced to an incorrect exclusion of
maven-artifactin the extensions-support/debezium/deployment/pom.xml. This exclusion prevented essential Maven versioning classes (required by the Debezium engine at build time) from being available to the Quarkus native image generator.Changes:
<exclusion>formaven-artifactincamel-quarkus-support-debezium-deployment.Verification:
mvn clean install) of Debezium support and connector modules (PostgreSQL and Oracle) to ensure no regressions.