You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "michael-o (via GitHub)" <gi...@apache.org> on 2023/04/19 12:23:40 UTC

[GitHub] [maven-release] michael-o commented on a diff in pull request #182: [MRELEASE-851]: javaHome argument is now honored in InvokerMavenExecutor

michael-o commented on code in PR #182:
URL: https://github.com/apache/maven-release/pull/182#discussion_r1171259426


##########
maven-release-manager/src/main/java/org/apache/maven/shared/release/exec/ForkedMavenExecutor.java:
##########
@@ -106,6 +106,10 @@ public void executeGoals(
 
             cl.addEnvironment("MAVEN_TERMINATE_CMD", "on");
 
+            if (releaseEnvironment.getJavaHome() != null) {
+                cl.addEnvironment("JAVA_HOME", releaseEnvironment.getJavaHome().getAbsolutePath());

Review Comment:
   I'd expect that always an absolute file is provided, no?



-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org