AxonFramework / extension-spring-aot

Axon Framework extension for Spring Ahead of Time compilation support.
Apache License 2.0
4 stars 0 forks source link

Native compilation doesn't work anymore when using Axon Framework 4.9.1 #142

Open abuijze opened 6 months ago

abuijze commented 6 months ago

Since Axon Framework 4.9.1, the Axon Server Connector uses the Shaded Netty dependency. Unfortunately, the native reachability metadata repository for GraalVM doesn't have any information for Netty Shaded yet. The issue has been brought up with the GraalVM team.

As a workaround, we could add the metadata ourselves based on the metadata for netty itself. The packages of all classes would need to be prefixed with the shader prefix.

abuijze commented 6 months ago

It looks like there is native metadata available in the shaded jar, but for some reason, it doesn't work. https://github.com/grpc/grpc-java/issues/10601