aboutsummaryrefslogtreecommitdiff
path: root/yarn/pom.xml
diff options
context:
space:
mode:
authorRaymond Liu <raymond.liu@intel.com>2013-11-14 12:44:19 +0800
committerRaymond Liu <raymond.liu@intel.com>2013-11-14 12:44:19 +0800
commita60620b76a98e236f1e4ffda7a2f289e7917b957 (patch)
treef66630007c201074af74ba13dca24ab9894ae543 /yarn/pom.xml
parent0f2e3c6e31d56c627ff81cdc93289a7c7cb2ec16 (diff)
parent2054c61a18c277c00661b89bbae365470c297031 (diff)
downloadspark-a60620b76a98e236f1e4ffda7a2f289e7917b957.tar.gz
spark-a60620b76a98e236f1e4ffda7a2f289e7917b957.tar.bz2
spark-a60620b76a98e236f1e4ffda7a2f289e7917b957.zip
Merge branch 'master' into scala-2.10
Diffstat (limited to 'yarn/pom.xml')
-rw-r--r--yarn/pom.xml50
1 files changed, 50 insertions, 0 deletions
diff --git a/yarn/pom.xml b/yarn/pom.xml
index 7770cbb0cc..12bc97da8a 100644
--- a/yarn/pom.xml
+++ b/yarn/pom.xml
@@ -61,6 +61,16 @@
<groupId>org.apache.avro</groupId>
<artifactId>avro-ipc</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.scalatest</groupId>
+ <artifactId>scalatest_2.9.3</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-all</artifactId>
+ <scope>test</scope>
+ </dependency>
</dependencies>
<build>
@@ -106,6 +116,46 @@
</execution>
</executions>
</plugin>
+ <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>
</plugins>
</build>
</project>