diff --git a/hadoop-common-project/hadoop-common/pom.xml b/hadoop-common-project/hadoop-common/pom.xml
index 5fb267cfd0..6c6d3ec5bf 100644
--- a/hadoop-common-project/hadoop-common/pom.xml
+++ b/hadoop-common-project/hadoop-common/pom.xml
@@ -652,9 +652,10 @@
exec
- ${basedir}/../../dev-support/bin/shelldocs
+ ${shell-executable}
src/site/markdown
+ ${basedir}/../../dev-support/bin/shelldocs
--skipprnorep
--output
${basedir}/src/site/markdown/UnixShellAPI.md