From 6061d9ffba60a2f8c50cfa5cb63582d136dd791e Mon Sep 17 00:00:00 2001 From: marc0olo Date: Sat, 22 Aug 2026 01:04:17 +0200 Subject: [PATCH] chore: manage the avro-maven-plugin version in the parent soon-market-sse-api's native build fails on main with generated-sources/avsc/contracts/realtime_event.java: cannot find symbol symbol: class JsonSchemaParser location: package org.apache.avro It declares avro-maven-plugin without a version, and this pom defined avro-maven-plugin.version = 1.11.3 as a property it never used - there was no pluginManagement entry at all - so the version floated to the newest release. Avro 1.12 generates code referencing org.apache.avro.JsonSchemaParser, which does not exist in the 1.11 runtime the quarkus bom provides, so the generated sources cannot compile against their own runtime. The property is now actually used, which makes codegen and runtime match exactly - the property that matters, since generated code must only reference apis the runtime has: avro-maven-plugin:1.11.3:schema org.apache.avro:avro:jar:1.11.3:compile Verified end to end: with no version in sse-api's own pom and its submodule pointed at this change, mvn compile resolves 1.11.3 and succeeds. That is why the per repo pin in kryptokrauts/soon-market-sse-api#11 was closed in favour of this. sse-api is the only consumer that declares the plugin today; the other four were checked. Co-Authored-By: Claude Opus 5 --- pom.xml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pom.xml b/pom.xml index 30ed59d..93fb182 100644 --- a/pom.xml +++ b/pom.xml @@ -61,6 +61,20 @@ + + + + + org.apache.avro + avro-maven-plugin + ${avro-maven-plugin.version} + + + com.spotify.fmt