diff --git a/hadoop-dist/pom.xml b/hadoop-dist/pom.xml
index ce1bd926c84..42e74cbe7c4 100644
--- a/hadoop-dist/pom.xml
+++ b/hadoop-dist/pom.xml
@@ -90,16 +90,17 @@
dist
prepare-package
- exec
+ exec
- ${basedir}/../dev-support/bin/dist-layout-stitching
- ${project.build.directory}
- false
-
- ${project.version}
- ${project.build.directory}
-
+ ${shell-executable}
+ ${project.build.directory}
+ false
+
+ ${basedir}/../dev-support/bin/dist-layout-stitching
+ ${project.version}
+ ${project.build.directory}
+
@@ -109,12 +110,13 @@
exec
- ${basedir}/../dev-support/bin/dist-tar-stitching
+ ${shell-executable}
${project.build.directory}
false
- ${project.version}
- ${project.build.directory}
+ ${basedir}/../dev-support/bin/dist-tar-stitching
+ ${project.version}
+ ${project.build.directory}