diff --git a/pom.xml b/pom.xml
index deb89b18ada73..f0644ed284363 100644
--- a/pom.xml
+++ b/pom.xml
@@ -419,6 +419,11 @@
scala-compiler
${scala.version}
+
+ org.scala-lang
+ scala-reflect
+ ${scala.version}
+
org.scala-lang
jline
diff --git a/project/SparkBuild.scala b/project/SparkBuild.scala
index 60f14ba37e35c..9e269e6551341 100644
--- a/project/SparkBuild.scala
+++ b/project/SparkBuild.scala
@@ -356,7 +356,9 @@ object SparkBuild extends Build {
) ++ assemblySettings ++ extraAssemblySettings
def toolsSettings = sharedSettings ++ Seq(
- name := "spark-tools"
+ name := "spark-tools",
+ libraryDependencies <+= scalaVersion(v => "org.scala-lang" % "scala-compiler" % v ),
+ libraryDependencies <+= scalaVersion(v => "org.scala-lang" % "scala-reflect" % v )
) ++ assemblySettings ++ extraAssemblySettings
def graphxSettings = sharedSettings ++ Seq(
diff --git a/repl/pom.xml b/repl/pom.xml
index fc49c8b811316..78d2fe13c27eb 100644
--- a/repl/pom.xml
+++ b/repl/pom.xml
@@ -77,6 +77,11 @@
scala-compiler
${scala.version}
+
+ org.scala-lang
+ scala-reflect
+ ${scala.version}
+
org.scala-lang
jline
diff --git a/tools/pom.xml b/tools/pom.xml
index 11433e596f5b0..ae2ba64e07c21 100644
--- a/tools/pom.xml
+++ b/tools/pom.xml
@@ -55,6 +55,14 @@
spark-streaming_${scala.binary.version}
${project.version}
+
+ org.scala-lang
+ scala-reflect
+
+
+ org.scala-lang
+ scala-compiler
+
org.scalatest
scalatest_${scala.binary.version}