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 2022/10/17 02:36:41 UTC

[GitHub] [maven-mvnd] gzm55 commented on pull request #717: Add script mvnd-auto to a proper mvnd

gzm55 commented on PR #717:
URL: https://github.com/apache/maven-mvnd/pull/717#issuecomment-1280195376

   > Also, we may want to investigate a way to run the client on a different JVM that the daemon. We could add two mvnd environment variables, one which would point to the default client JVM, and another that would define whether we want to _always_ use that JVM for the client, _auto_ switch to that JVM is the environment one is that JDK 11 compatible, or _never_ use it. The embedded maven would then only be used if the former is not defined or if the later is set to _never_.
   
   @gnodet do you mean add two new env: `MVND_CLIENT_JAVA_HOME` and `MVND_CLIENT_JAVA_HOME_REQUIRE`, and when the native version fails, we
   
   -  (MVND_CLIENT_JAVA_HOME is unset) or (MVND_CLIENT_JAVA_HOME_REQUIRE=never):
      - JAVA_HOME/bin/java or java is JDK 11+: mvnd with os java
      - JAVA_HOME/bin/java or java is old JDK: embeded maven with os java
   -  MVND_CLIENT_JAVA_HOME is set, and MVND_CLIENT_JAVA_HOME_REQUIRE=always
      - always run mvnd with MVND_CLIENT_JAVA_HOME/bin/java
   -  MVND_CLIENT_JAVA_HOME is set, and MVND_CLIENT_JAVA_HOME_REQUIRE=auto (default value)
      - MVND_CLIENT_JAVA_HOME/bin/java is JDK 11+: mvnd with MVND_CLIENT_JAVA_HOME/bin/java
      - JAVA_HOME/bin/java or java is JDK 11+: mvnd with os java
      - JAVA_HOME/bin/java or java is old JDK: embeded maven with os java
   


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