Maven uses the JAVA_HOME parameter to find which Java version it is supposed to run. I see from your comment that you can’t change that in the configuration.
- You can set the
JAVA_HOMEparameter just before you start maven (and change it back afterwards if need be). - You could also go into your
mvn(non-windows)/mvn.bat/mvn.cmd(windows) and set your java version explicitly there.