Skip to content

Quarkus avro and kotlin maven phase ordering problem #22447

Answered by cescoffier
jelmew asked this question in Q&A
Discussion options

You must be logged in to vote

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:

[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ avro-kotlin ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- quarkus-maven-plugin:2.5.1.Final:generate-code (default) @ avro-kotlin ---  <---- Quarkus Avro generation
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ avro-kotlin ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- kotlin-maven-plugin:1.5.31:compile (compile) @ av…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by cescoffier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants