zhfeng commented on issue #4512: URL: https://github.com/apache/camel-quarkus/issues/4512#issuecomment-1423913173
I think the brotli decompress is introduced by https://github.com/apache/httpcomponents-client/commit/db47570efefe32054f6d5a45cf0023e9d6927338 I tried to add a subsitution on `org.apache.hc.client5.http.entity.BrotliInputStreamFactory` but the native building throws ``` Error: Cannot find org.apache.hc.client5.http.entity.BrotliInputStreamFactory.create, org.apache.hc.client5.http.entity.BrotliInputStreamFactory can not be loaded, due to org/brotli/dec/BrotliInputStream not being available in the classpath. Are you missing a dependency in your classpath? com.oracle.svm.core.util.UserError$UserException: Cannot find org.apache.hc.client5.http.entity.BrotliInputStreamFactory.create, org.apache.hc.client5.http.entity.BrotliInputStreamFactory can not be loaded, due to org/brotli/dec/BrotliInputStream not being available in the classpath. Are you missing a dependency in your classpath? ``` The only way is to add `NativeImageAllowIncompleteClasspathBuildItem` ```java @BuildStep NativeImageAllowIncompleteClasspathBuildItem brotliDecIsOptional() { return new NativeImageAllowIncompleteClasspathBuildItem("camel-quarkus-saxon"); } ``` @ppalaga @zakkak any idea? -- 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]
