You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "sanjana2505006 (via GitHub)" <gi...@apache.org> on 2026/02/06 10:53:46 UTC

[PR] Fix #8252: Remove incorrect maven-artifact exclusion causing Debezium… [camel-quarkus]

sanjana2505006 opened a new pull request, #8265:
URL: https://github.com/apache/camel-quarkus/pull/8265

   This PR addresses the `ClassNotFoundException: org.apache.maven.artifact.versioning.InvalidVersionSpecificationException` encountered during native compilation of Debezium extensions.
   
   The issue was traced to an incorrect exclusion of `maven-artifact` in the [extensions-support/debezium/deployment/pom.xml](cci:7://file:///Users/sanjana./camel-quarkus/extensions-support/debezium/deployment/pom.xml:0:0-0:0). 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:
   - Removed `<exclusion>` for `maven-artifact` in `camel-quarkus-support-debezium-deployment`.
   
   Verification:
   - Performed a JVM build (`mvn clean install`) of Debezium support and connector modules (PostgreSQL and Oracle) to ensure no regressions.
   - Ref: #8252


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix #8252: Remove incorrect maven-artifact exclusion causing Debezium… [camel-quarkus]

Posted by "sanjana2505006 (via GitHub)" <gi...@apache.org>.
sanjana2505006 commented on PR #8265:
URL: https://github.com/apache/camel-quarkus/pull/8265#issuecomment-3859696321

   @jamesnetherton   Whenever you get a chance, please review and let me know if any changes are needed


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix #8252: Remove incorrect maven-artifact exclusion causing Debezium… [camel-quarkus]

Posted by "jamesnetherton (via GitHub)" <gi...@apache.org>.
jamesnetherton commented on PR #8265:
URL: https://github.com/apache/camel-quarkus/pull/8265#issuecomment-3861185924

   > This should prevent the ServiceConfigurationError and ClassNotFoundException that often occur during native testing when ConfigProvider is accessed too early.
   
   Not sure that's a concern here. I have never seen any issues related to that. Those `QuarkusTestResource` classes are just run from JUnit extensions and are scoped to the test classpath.
   
   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 `start()` method etc.


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix #8252: Remove incorrect maven-artifact exclusion causing Debezium… [camel-quarkus]

Posted by "jamesnetherton (via GitHub)" <gi...@apache.org>.
jamesnetherton commented on PR #8265:
URL: https://github.com/apache/camel-quarkus/pull/8265#issuecomment-3860127054

   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...


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix #8252: Remove incorrect maven-artifact exclusion causing Debezium… [camel-quarkus]

Posted by "sanjana2505006 (via GitHub)" <gi...@apache.org>.
sanjana2505006 commented on PR #8265:
URL: https://github.com/apache/camel-quarkus/pull/8265#issuecomment-3861063878

   @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 `ServiceConfigurationError` and `ClassNotFoundException` that often occur during native testing when `ConfigProvider` is accessed too early.
   
   I also re-applied the `maven-artifact` exclusion removal.
   
   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.


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix #8252: Remove incorrect maven-artifact exclusion causing Debezium… [camel-quarkus]

Posted by "sanjana2505006 (via GitHub)" <gi...@apache.org>.
sanjana2505006 commented on PR #8265:
URL: https://github.com/apache/camel-quarkus/pull/8265#issuecomment-3873304444

   @jamesnetherton Thank you for the feedback!
   I have reverted the refactoring of the test resources to match the existing project conventions and the state in the `main` branch. I've also squashed the PR into a single clean commit that focuses solely on the removal of the `maven-artifact` exclusion in `camel-quarkus-support-debezium-deployment`
   
   This should now provide a minimal and idiomatic fix for the `ClassNotFoundException` encountered during native compilation. Please let me know if any further changes are needed.


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix #8252: Remove incorrect maven-artifact exclusion causing Debezium… [camel-quarkus]

Posted by "jamesnetherton (via GitHub)" <gi...@apache.org>.
jamesnetherton merged PR #8265:
URL: https://github.com/apache/camel-quarkus/pull/8265


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org