diff --git a/hadoop-project/pom.xml b/hadoop-project/pom.xml
index c7c5a7200f1..7537a83a52e 100644
--- a/hadoop-project/pom.xml
+++ b/hadoop-project/pom.xml
@@ -1372,7 +1372,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