diff --git a/hadoop-project/pom.xml b/hadoop-project/pom.xml
index 9fe4da909af..f4a78e6bbf0 100644
--- a/hadoop-project/pom.xml
+++ b/hadoop-project/pom.xml
@@ -1266,7 +1266,7 @@
${test.build.data}
${test.build.webapps}
${test.cache.data}
- ${test.build.classes}
+ ${project.build.directory}/test-classes
true
${project.build.directory}/test-classes/krb5.conf