From ea5159aa66e7acb3513969d7715d783957bd8a27 Mon Sep 17 00:00:00 2001 From: Lewis John McGibbney Date: Wed, 18 Mar 2026 13:29:20 -0700 Subject: [PATCH] TEZ-4696 Fix Maven build: register generated-sources and fork compiler to resolve test-compile failures --- tez-dag/pom.xml | 26 ++++++++++++++++++++++++++ tez-mapreduce/pom.xml | 26 ++++++++++++++++++++++++++ tez-runtime-internals/pom.xml | 26 ++++++++++++++++++++++++++ tez-runtime-library/pom.xml | 18 ++++++++++++++++++ 4 files changed, 96 insertions(+) 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 + + + + +