diff --git a/parquet-format-structures/pom.xml b/parquet-format-structures/pom.xml
index b680d6016a..7ff9c6a113 100644
--- a/parquet-format-structures/pom.xml
+++ b/parquet-format-structures/pom.xml
@@ -133,6 +133,25 @@
true
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+ 3.6.0
+
+
+ add-sources
+ generate-sources
+
+ add-source
+
+
+
+ ${project.build.directory}/generated-sources/thrift
+
+
+
+
+
diff --git a/parquet-thrift/pom.xml b/parquet-thrift/pom.xml
index 0ac455f33f..9c4d1fe8c7 100644
--- a/parquet-thrift/pom.xml
+++ b/parquet-thrift/pom.xml
@@ -206,6 +206,25 @@
org.apache.maven.plugins
maven-shade-plugin
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+ 3.6.0
+
+
+ add-test-sources
+ generate-test-sources
+
+ add-test-source
+
+
+
+ ${project.build.directory}/generated-test-sources/thrift
+
+
+
+
+