diff --git a/tez-dag/pom.xml b/tez-dag/pom.xml
index 10579f2c5b..64f8a4182a 100644
--- a/tez-dag/pom.xml
+++ b/tez-dag/pom.xml
@@ -245,6 +245,32 @@
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+ add-generated-sources
+ generate-sources
+
+ add-source
+
+
+
+ ${project.build.directory}/generated-sources/java
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+ true
+ 1024m
+
+
diff --git a/tez-mapreduce/pom.xml b/tez-mapreduce/pom.xml
index 3ef921d5a9..6acc37daa2 100644
--- a/tez-mapreduce/pom.xml
+++ b/tez-mapreduce/pom.xml
@@ -165,6 +165,32 @@
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+ add-generated-sources
+ generate-sources
+
+ add-source
+
+
+
+ ${project.build.directory}/generated-sources/java
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+ true
+ 1024m
+
+
diff --git a/tez-runtime-internals/pom.xml b/tez-runtime-internals/pom.xml
index d776cbfd03..114ef0664f 100644
--- a/tez-runtime-internals/pom.xml
+++ b/tez-runtime-internals/pom.xml
@@ -128,6 +128,32 @@
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+ add-generated-sources
+ generate-sources
+
+ add-source
+
+
+
+ ${project.build.directory}/generated-sources/java
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+ true
+ 1024m
+
+
diff --git a/tez-runtime-library/pom.xml b/tez-runtime-library/pom.xml
index a09311d90a..6ac12ad3a1 100644
--- a/tez-runtime-library/pom.xml
+++ b/tez-runtime-library/pom.xml
@@ -142,6 +142,24 @@
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+ add-generated-sources
+ generate-sources
+
+ add-source
+
+
+
+ ${project.build.directory}/generated-sources/java
+
+
+
+
+