Maybe it can already be done - I am not sure - but it would be nice to be able to specify a minimum JDK version, such that, if I run mvn jshell:run from a JDK 10 and it was required to use JDK 11 (because my project specified that in the complier plugin in), then JShell will not start and issues a nice error message "Minimum JDK version is 11. You tried to launch with version 10. Please run from version 11 or better."
Maybe it can already be done - I am not sure - but it would be nice to be able to specify a minimum JDK version, such that, if I run
mvn jshell:runfrom a JDK 10 and it was required to use JDK 11 (because my project specified that in the complier plugin in), then JShell will not start and issues a nice error message "Minimum JDK version is 11. You tried to launch with version 10. Please run from version 11 or better."