diff --git a/core/pom.xml b/core/pom.xml index fd2f5fed4b6d59dba3bf5b31060825a13bb910b9..ae52c20657b5448140d97813e8eae7286135a38f 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>