Github user vanzin commented on a diff in the pull request:
https://github.com/apache/spark/pull/3651#discussion_r21641703
--- Diff: yarn/pom.xml ---
@@ -152,6 +147,15 @@
</environmentVariables>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <environmentVariables>
+ <SPARK_HOME>${basedir}/../..</SPARK_HOME>
--- End diff --
This is ok, but a little verbose. What I've seen other projects do is
define a "pathToRoot" variable that is referenced in the common configuration
in the root pom. Then modules that rely on this env variable being set can
override "pathToRoot" to have the right relative path.
---
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]