From a7af6cd2eaf9f6ff491b9e1fabfc9c6f3d0f54bf Mon Sep 17 00:00:00 2001 From: Josh Rosen Date: Thu, 31 Mar 2016 13:52:59 -0700 Subject: [SPARK-14281][TESTS] Fix java8-tests and simplify their build This patch fixes a compilation / build break in Spark's `java8-tests` and refactors their POM to simplify the build. See individual commit messages for more details. Author: Josh Rosen Closes #12073 from JoshRosen/fix-java8-tests. --- external/java8-tests/README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'external/java8-tests/README.md') diff --git a/external/java8-tests/README.md b/external/java8-tests/README.md index dc9e87f2ee..aa87901695 100644 --- a/external/java8-tests/README.md +++ b/external/java8-tests/README.md @@ -8,16 +8,14 @@ to your Java location. The set-up depends a bit on the build system: `-java-home` to the sbt launch script. If a Java 8 JDK is detected sbt will automatically include the Java 8 test project. - `$ JAVA_HOME=/opt/jdk1.8.0/ build/sbt clean "test-only org.apache.spark.Java8APISuite"` + `$ JAVA_HOME=/opt/jdk1.8.0/ build/sbt clean java8-tests/test * For Maven users, - Maven users can also refer to their Java 8 directory using JAVA_HOME. However, Maven will not - automatically detect the presence of a Java 8 JDK, so a special build profile `-Pjava8-tests` - must be used. + Maven users can also refer to their Java 8 directory using JAVA_HOME. `$ JAVA_HOME=/opt/jdk1.8.0/ mvn clean install -DskipTests` - `$ JAVA_HOME=/opt/jdk1.8.0/ mvn test -Pjava8-tests -DwildcardSuites=org.apache.spark.Java8APISuite` + `$ JAVA_HOME=/opt/jdk1.8.0/ mvn -pl :java8-tests_2.11 test` Note that the above command can only be run from project root directory since this module depends on core and the test-jars of core and streaming. This means an install step is -- cgit v1.2.3