From 95180c581d6fcd5452527a0f8d1d774e01f0d8a7 Mon Sep 17 00:00:00 2001 From: Ahmed Muhsin Date: Wed, 1 Apr 2026 11:23:45 -0500 Subject: [PATCH] fix: write dependency-reduced-pom.xml to target/ to prevent incremental build issues The maven-shade-plugin writes dependency-reduced-pom.xml to the project root by default. On subsequent builds without clean, Maven reads this file instead of pom.xml, loses protobuf/gRPC dependencies, and produces a JAR without StreamingMessage and other generated gRPC classes. Setting dependencyReducedPomLocation to target/ ensures clean deletes it and incremental builds always use the real pom.xml. --- .gitignore | 1 + pom.xml | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index 68ad7d72..45e1ecf0 100644 --- a/.gitignore +++ b/.gitignore @@ -291,3 +291,4 @@ __pycache__/ # Docker test packages dockertests/app-packages/ +.protoc-dependencies diff --git a/pom.xml b/pom.xml index a483d766..81757ca2 100644 --- a/pom.xml +++ b/pom.xml @@ -199,6 +199,13 @@ shade + + ${project.build.directory}/dependency-reduced-pom.xml com.microsoft.azure.functions.worker.Application