GitHub user JoshRosen opened a pull request:
https://github.com/apache/spark/pull/13573
[SPARK-15839] Fix Maven doc-jar generation when JAVA_7_HOME is set
## What changes were proposed in this pull request?
It looks like the nightly Maven snapshots broke after we set `JAVA_7_HOME`
in the build:
https://amplab.cs.berkeley.edu/jenkins/view/Spark%20Packaging/job/spark-master-maven-snapshots/1573/.
It seems that passing `-javabootclasspath` to scalac using scala-maven-plugin
ends up preventing the Scala library classes from being added to scalac's
internal class path, causing compilation errors while building doc-jars.
There might be a principled fix to this inside of the scala-maven-plugin
itself, but for now this patch configures the build to omit the
`-javabootclasspath` option during Maven doc-jar generation.
## How was this patch tested?
Tested manually with `build/mvn clean install -DskipTests=true` when
`JAVA_7_HOME` was set. Also manually inspected the effective POM diff to verify
that the final POM changes were scoped correctly:
https://gist.github.com/JoshRosen/f889d1c236fad14fa25ac4be01654653
/cc @vanzin and @yhuai for review.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/JoshRosen/spark SPARK-15839
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/13573.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #13573
----
commit 523487bb0be24c698ee66d8c09430d1909eff81c
Author: Josh Rosen <[email protected]>
Date: 2016-06-09T07:45:50Z
Reduce scope of -javabootclasspath in scala-maven-plugin.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]