diff --git a/test/java/spark/pom.xml b/test/java/spark/pom.xml
index 935ae85b4..dffdb47ba 100644
--- a/test/java/spark/pom.xml
+++ b/test/java/spark/pom.xml
@@ -84,8 +84,8 @@
maven-compiler-plugin
3.11.0
- 1.8
- 1.8
+ ${maven.compiler.source}
+ ${maven.compiler.target}