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/01/04 15:07:29 UTC

[GitHub] [maven-mvnd] ppalaga commented on issue #547: java 8 can't use

ppalaga commented on issue #547:
URL: https://github.com/apache/maven-mvnd/issues/547#issuecomment-1004889625


   I guess you are trying use mvnd on Apple M1 and because there is no native executable for that platform, you use the `mvnd.sh` script? 
   Well, yes, the mvnd client module is the only one from the mvnd family that requires Java 11. For the Daemon and all its dependencies, Java 8 is enough. I further assume that you really want to run your build on Java 8 (because otherwise, you could just use Java 11 for both client and Daemon).
   
   So to run your build on Java 8, you somehow need to reach that the client process uses Java 11+ and the Daemon uses Java 8.
   
   An easy and dirty solution that comes to my mind would be to hardcode `JAVACMD` in `mvnd.sh` to your Java 11 `java` executable and make sure that `JAVA_HOME` env var points at Java 8.
   
   Maybe @gnodet knows of a better solution?


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