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(#5047): Update Quarkus service discovery setting for data type transformer #5055

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pkg/builder/quarkus.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,9 @@ func GenerateQuarkusProjectCommon(runtimeVersion string, quarkusVersion string,
// proxies which in some case may fail.
buildProperties["quarkus.camel.routes-discovery.enabled"] = "false"

// required for Kamelets utils to resolve data type converters at runtime
buildProperties["quarkus.camel.service.discovery.include-patterns"] = "META-INF/services/org/apache/camel/datatype/converter/*"
// required for to resolve data type transformers at runtime with service discovery
// the different Camel runtimes use different resource paths for the service lookup
buildProperties["quarkus.camel.service.discovery.include-patterns"] = "META-INF/services/org/apache/camel/datatype/converter/*,META-INF/services/org/apache/camel/datatype/transformer/*,META-INF/services/org/apache/camel/transformer/*"

// copy all user defined quarkus.camel build time properties to the quarkus-maven-plugin build properties
for key, value := range buildTimeProperties {
Expand Down
4 changes: 2 additions & 2 deletions script/camel-k-runtime-archetype/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<properties>
<quarkus.banner.enabled>false</quarkus.banner.enabled>
<quarkus.camel.routes-discovery.enabled>false</quarkus.camel.routes-discovery.enabled>
<quarkus.camel.service.discovery.include-patterns>META-INF/services/org/apache/camel/datatype/converter/*</quarkus.camel.service.discovery.include-patterns>
<quarkus.camel.service.discovery.include-patterns>META-INF/services/org/apache/camel/datatype/converter/*,META-INF/services/org/apache/camel/datatype/transformer/*,META-INF/services/org/apache/camel/transformer/*</quarkus.camel.service.discovery.include-patterns>
</properties>
</configuration>
</execution>
Expand Down Expand Up @@ -120,4 +120,4 @@
</plugins>
<extensions></extensions>
</build>
</project>
</project>
Loading