diff --git a/backends-velox/pom.xml b/backends-velox/pom.xml
index 9821682cc7963..70274be4b8d0b 100755
--- a/backends-velox/pom.xml
+++ b/backends-velox/pom.xml
@@ -215,12 +215,6 @@
-
-
- ${cpp.releases.dir}
- ${platform}/${arch}
-
-
target/scala-${scala.binary.version}/classes
target/scala-${scala.binary.version}/test-classes
@@ -274,6 +268,27 @@
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+ add-cpp-libraries
+ generate-resources
+
+ add-resource
+
+
+
+
+ ${cpp.releases.dir}
+ ${platform}/${arch}
+
+
+
+
+
+
diff --git a/gluten-substrait/pom.xml b/gluten-substrait/pom.xml
index e8eb6a57e6c4f..2183f9b159827 100644
--- a/gluten-substrait/pom.xml
+++ b/gluten-substrait/pom.xml
@@ -181,13 +181,6 @@
target/scala-${scala.binary.version}/classes
target/scala-${scala.binary.version}/test-classes
-
-
- true
-
- ${project.build.directory}/extra-resources
-
-
org.apache.maven.plugins
@@ -217,6 +210,30 @@
+
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+ add-generated-resources
+ generate-resources
+
+ add-resource
+
+
+
+
+ true
+
+ ${project.build.directory}/extra-resources
+
+
+
+
+
+
org.xolstice.maven.plugins