From c04cfcd07ce673175ce928f01c34b7cce2a008f8 Mon Sep 17 00:00:00 2001 From: Ajinkya Date: Mon, 6 Jan 2025 13:59:56 +0530 Subject: [PATCH] added protobuf generation in mvn --- pom.xml | 25 +++++++++++++++++++++++-- scripts/proto-gen.sh | 2 +- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index a823527581..b4a4985bee 100644 --- a/pom.xml +++ b/pom.xml @@ -97,7 +97,29 @@ ${jacoco.reportPath} true - + + + org.codehaus.mojo + exec-maven-plugin + 3.1.0 + + + run-make-root-only + compile + + exec + + + make + + proto-gen + + true + + false + + + @@ -126,4 +148,3 @@ - diff --git a/scripts/proto-gen.sh b/scripts/proto-gen.sh index ff32a1f164..ff5d20bd51 100644 --- a/scripts/proto-gen.sh +++ b/scripts/proto-gen.sh @@ -4,7 +4,7 @@ # Please install buf if not already installed by following the instructions at https://docs.buf.build/installation if ! command -v buf >/dev/null 2>&1; then echo "Please install buf if not already installed by following the instructions at https://docs.buf.build/installation" - exit + exit 1 fi buf lint protobuf