You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2020/04/27 21:19:36 UTC
[GitHub] [maven-surefire] Tibor17 edited a comment on pull request #288: [SUREFIRE-1783] Fork JVM defined by Toolchain should not inherit JAVA_HOME from Maven process
Tibor17 edited a comment on pull request #288:
URL: https://github.com/apache/maven-surefire/pull/288#issuecomment-620240243
We have a [utility](https://github.com/apache/maven-surefire/blob/15a631b811fb1deadfdaaa56a76dff5b3275629c/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java#L2539) `SystemUtils#toJdkHomeFromJvmExec()`. Everything is there. It's only a question to put:
```
if ( !environmentVariables.containsKey( "JAVA_HOME" ) )
{
environmentVariables.put( "JAVA_HOME", jdkHome.getAbsolutePath() );
}
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org