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