Hi guys, I spent a lot of time trying to fix a specific issue using maven with a kotlin project based on AOT (micronaut). So I'd like to share in case someone has similar issue. The issue is: kotlin-maven-plugin by default doesn't provide
javaParameters=true
option to the kotlin compiler. Which is right I guess, as a default. But if you then use some "annotationProcessor" that rely on "finding by reflection parameter by name" (for example using micronaut-data JdbcRepository with parametric query) then the compilation will crash. To solve the problem just make sure to provide ``javaParameters=true`` arg to the kotlin compiler (there is dedicated
<javaParameters>true</javaParameters>
within kotlin-maven-plugin configuration. Hope this can help.