diff options
author | Matei Zaharia <matei.zaharia@gmail.com> | 2013-08-13 20:09:51 -0700 |
---|---|---|
committer | Matei Zaharia <matei.zaharia@gmail.com> | 2013-08-13 20:09:51 -0700 |
commit | 3f14cbab05f732f129b2da4efb19c746949ad0ab (patch) | |
tree | 5da59be0df21ee34cc5efe0b23413f4d45f00385 | |
parent | 596adc63bebf9cd0fcf6a9d0b952c5f5c6fc4f12 (diff) | |
parent | a1227708e91946c34fcd5ff074dbca7ea5a93660 (diff) | |
download | spark-3f14cbab05f732f129b2da4efb19c746949ad0ab.tar.gz spark-3f14cbab05f732f129b2da4efb19c746949ad0ab.tar.bz2 spark-3f14cbab05f732f129b2da4efb19c746949ad0ab.zip |
Merge pull request #825 from shivaram/maven-repl-fix
Set SPARK_CLASSPATH for maven repl tests
-rw-r--r-- | repl/pom.xml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/repl/pom.xml b/repl/pom.xml index 7d8da03254..862595b9f9 100644 --- a/repl/pom.xml +++ b/repl/pom.xml @@ -74,12 +74,42 @@ <testOutputDirectory>target/scala-${scala.version}/test-classes</testOutputDirectory> <plugins> <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <executions> + <execution> + <phase>test</phase> + <goals> + <goal>run</goal> + </goals> + <configuration> + <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> + </executions> + </plugin> + <plugin> <groupId>org.scalatest</groupId> <artifactId>scalatest-maven-plugin</artifactId> <configuration> <environmentVariables> <SPARK_HOME>${basedir}/..</SPARK_HOME> <SPARK_TESTING>1</SPARK_TESTING> + <SPARK_CLASSPATH>${spark.classpath}</SPARK_CLASSPATH> </environmentVariables> </configuration> </plugin> |