diff options
author | Shivaram Venkataraman <shivaram@eecs.berkeley.edu> | 2013-08-13 20:06:47 -0700 |
---|---|---|
committer | Shivaram Venkataraman <shivaram@eecs.berkeley.edu> | 2013-08-13 20:06:47 -0700 |
commit | a1227708e91946c34fcd5ff074dbca7ea5a93660 (patch) | |
tree | 5da59be0df21ee34cc5efe0b23413f4d45f00385 /repl | |
parent | 596adc63bebf9cd0fcf6a9d0b952c5f5c6fc4f12 (diff) | |
download | spark-a1227708e91946c34fcd5ff074dbca7ea5a93660.tar.gz spark-a1227708e91946c34fcd5ff074dbca7ea5a93660.tar.bz2 spark-a1227708e91946c34fcd5ff074dbca7ea5a93660.zip |
Set SPARK_CLASSPATH for maven repl tests
Diffstat (limited to 'repl')
-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> |