diff options
author | Josh Rosen <joshrosen@databricks.com> | 2016-03-31 13:52:59 -0700 |
---|---|---|
committer | Josh Rosen <joshrosen@databricks.com> | 2016-03-31 13:52:59 -0700 |
commit | a7af6cd2eaf9f6ff491b9e1fabfc9c6f3d0f54bf (patch) | |
tree | ed2f42c05660c73bec8a1e396780d91205883bd8 /external/java8-tests/README.md | |
parent | b11887c086974dbab18b9f53e99a26bbe06e9c86 (diff) | |
download | spark-a7af6cd2eaf9f6ff491b9e1fabfc9c6f3d0f54bf.tar.gz spark-a7af6cd2eaf9f6ff491b9e1fabfc9c6f3d0f54bf.tar.bz2 spark-a7af6cd2eaf9f6ff491b9e1fabfc9c6f3d0f54bf.zip |
[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 <joshrosen@databricks.com>
Closes #12073 from JoshRosen/fix-java8-tests.
Diffstat (limited to 'external/java8-tests/README.md')
-rw-r--r-- | external/java8-tests/README.md | 8 |
1 files changed, 3 insertions, 5 deletions
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 |