From 84e584fa8c931e436f55a69d70d18c3a129d0c6a Mon Sep 17 00:00:00 2001
From: Thomas Dudziak <tomdzk@gmail.com>
Date: Wed, 28 Nov 2012 19:46:06 -0800
Subject: [PATCH] Code review feedback fix

---
 core/pom.xml | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/core/pom.xml b/core/pom.xml
index fd2f5fed4b..ae52c20657 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -114,7 +114,7 @@
         <artifactId>maven-antrun-plugin</artifactId>
         <executions>
           <execution>
-            <phase>compile</phase>
+            <phase>test</phase>
             <goals>
               <goal>run</goal>
             </goals>
@@ -122,6 +122,17 @@
               <exportAntProperties>true</exportAntProperties>
               <tasks>
                 <property name="spark.classpath" refid="maven.test.classpath"/>
+                <property environment="env"/>
+                <fail message="Please set the SCALA_HOME (or SCALA_LIBRARY_PATH if scala is on the path) environment variables and retry.">
+                  <condition>
+                    <not>
+                      <or>
+                        <isset property="env.SCALA_HOME"/>
+                        <isset property="env.SCALA_LIBRARY_PATH"/>
+                      </or>
+                    </not>
+                  </condition>
+                </fail>
               </tasks>
             </configuration>
           </execution>
-- 
GitLab