Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(#3844): Add service discovery for Kamelet data type converter #3912

Merged

Conversation

christophd
Copy link
Contributor

@christophd christophd commented Dec 15, 2022

  • Enable service discovery for data type converter resources in order to enable factory finder mechanism when resolving data type implementations
  • Add proper quarkus-maven-plugin build time properties for quarkus.camel.* properties
  • Fixes the way camel-quarkus build time properties are set (set properties on the quarkus-maven-plugin instead of using generic Maven system properties)
  • Explicitly add quarkus.camel.service.discovery.include-patterns for data type converter resources in order to enable lazy loading of Kamelets data type implementations

Relates to #1980

also see https://github.com/apache/camel-kamelets/tree/main/library/camel-kamelets-utils/src/main/resources/META-INF/services/org/apache/camel/datatype/converter

Fixes #3844

@christophd christophd force-pushed the issue/3844/data-type-service-discovery branch from 7be83bb to 5aa1055 Compare December 15, 2022 15:43
Copy link
Contributor

@squakez squakez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I miss an E2E test to validate the feature you're trying to enable.

@christophd christophd force-pushed the issue/3844/data-type-service-discovery branch 4 times, most recently from 9955b8c to 3c0a087 Compare December 20, 2022 14:55
@christophd
Copy link
Contributor Author

@squakez I have added some e2e YAKS test with Kamelets using the service discovery mechanism

the failing install-it job seems to be non related to this PR

- Enable service discovery for data type converter resources in order to enable factory finder mechanism when resolving data type implementations
- Add proper quarkus-maven-plugin build time properties for quarkus.camel.* properties
- Fixes the way camel-quarkus build time properties are set (set properties on the quarkus-maven-plugin instead of using generic Maven system properties)
- Explicitly add quarkus.camel.service.discovery.include-patterns for data type converter resources in order to enable lazy loading of Kamelets data type implementations

Relates to apache#1980
- Kameletes used in the test make use of DataTypeRegistry and classpath scan is disabled
- Data type registry will then perform a lookup of the data types via service discovery mechanism
@christophd christophd force-pushed the issue/3844/data-type-service-discovery branch from 3c0a087 to bda7d95 Compare January 9, 2023 14:31
@christophd
Copy link
Contributor Author

@squakez please have another look

@squakez squakez merged commit d1af7f9 into apache:main Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add data type converter factory finder discovery in camel-quarkus
2 participants