diff --git a/hadoop-hdds/docs/pom.xml b/hadoop-hdds/docs/pom.xml
index 43e6b197e52..2e22302f8fb 100644
--- a/hadoop-hdds/docs/pom.xml
+++ b/hadoop-hdds/docs/pom.xml
@@ -46,7 +46,13 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
- dev-support/bin/generate-site.sh
+ ${shell-executable}
+ ${project.build.directory}
+
+ ${basedir}/dev-support/bin/generate-site.sh
+ ${hdds.version}
+ ${project.build.directory}
+