Quarkus avro and kotlin maven phase ordering problem #22447
-
Hi all, Upgrading from quarkus version 2.3 to 2.5, it seems something has changed in the maven ordering. In quarkus version 2.3 mvn quarkus:generate-code would run before kotlin:compile. However, since 2.5 the ordering changed. mvn package runs kotlin:compile first. Since kotlin compile depends on some generated classes, compilation fails. If manually generating code beforehand, you can see the order has been reversed. Any way to easily fix this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
/cc @evanchooly, @quarkusio/devtools |
Beta Was this translation helpful? Give feedback.
-
See the response from #22023: The problem is related to the Maven phases and the fact that the Kotlin compilation was happening before the Avro generation.
Projects generated from https://code.quarkus.io configure the project correctly. The pom.xml file should contain:
|
Beta Was this translation helpful? Give feedback.
See the response from #22023:
The problem is related to the Maven phases and the fact that the Kotlin compilation was happening before the Avro generation.
The right order is the following: