Skip to content

Avro code generation not triggering in 2.5 line #22023

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

You must be logged in to vote

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) @ avro-kotlin ---              <--…

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
10 replies
@cescoffier
Comment options

@languitar
Comment options

@cescoffier
Comment options

@Jeinhaus
Comment options

@languitar
Comment options

Comment options

You must be logged in to vote
1 reply
@languitar
Comment options

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
Labels
None yet
4 participants