diff --git a/dev/run-tests b/dev/run-tests
index f47fcf66ff7e7..7d06c86eb4b41 100755
--- a/dev/run-tests
+++ b/dev/run-tests
@@ -140,7 +140,7 @@ CURRENT_BLOCK=$BLOCK_BUILD
{
# We always build with Hive because the PySpark Spark SQL tests need it.
- BUILD_MVN_PROFILE_ARGS="$SBT_MAVEN_PROFILES_ARGS -Phive"
+ BUILD_MVN_PROFILE_ARGS="$SBT_MAVEN_PROFILES_ARGS -Phive -Phive-0.12.0"
echo "[info] Building Spark with these arguments: $BUILD_MVN_PROFILE_ARGS"
@@ -167,7 +167,7 @@ CURRENT_BLOCK=$BLOCK_SPARK_UNIT_TESTS
# If the Spark SQL tests are enabled, run the tests with the Hive profiles enabled.
# This must be a single argument, as it is.
if [ -n "$_RUN_SQL_TESTS" ]; then
- SBT_MAVEN_PROFILES_ARGS="$SBT_MAVEN_PROFILES_ARGS -Phive"
+ SBT_MAVEN_PROFILES_ARGS="$SBT_MAVEN_PROFILES_ARGS -Phive -Phive-0.12.0"
fi
if [ -n "$_SQL_TESTS_ONLY" ]; then
diff --git a/sql/hive/pom.xml b/sql/hive/pom.xml
index aa67951d28423..db01363b4d629 100644
--- a/sql/hive/pom.xml
+++ b/sql/hive/pom.xml
@@ -161,25 +161,24 @@
org.scalatest
scalatest-maven-plugin
-
-
- org.codehaus.mojo
- build-helper-maven-plugin
-
-
- add-default-sources
- generate-sources
-
- add-source
-
-
-
- v${hive.version.short}/src/main/scala
-
-
-
-
-
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+ add-default-sources
+ generate-sources
+
+ add-source
+
+
+
+ v${hive.version.short}/src/main/scala
+
+
+
+
+