diff --git a/java/pom.xml b/java/pom.xml
index c7534804ea..f7737d6cb4 100644
--- a/java/pom.xml
+++ b/java/pom.xml
@@ -64,6 +64,7 @@
${project.basedir}/../../examples
3.3.6
17
+ ${project.basedir}/../target/javadoc
5.10.1
3.6.0
3.6.0
@@ -658,18 +659,18 @@
https://orc.apache.org/api/hive-storage-api
- ${project.basedir}/../../site/api/hive-storage-api
+ ${javadoc.location}/api/hive-storage-api
https://orc.apache.org/api/orc-core
- ${project.basedir}/../../site/api/orc-core
+ ${javadoc.location}/api/orc-core
https://orc.apache.org/api/orc-mapreduce
- ${project.basedir}/../../site/api/orc-mapreduce
+ ${javadoc.location}/api/orc-mapreduce
- ${project.basedir}/../../site/api
+ ${javadoc.location}/api
true