If you run Maven goals from the IDE Maven tool window - the JDK IDE uses to run the goals is specified in Settings (Preferences on macOS) | Build, Execution, Deployment | Build Tools | Maven | Runner | **JRE:**. This is where you can change it.
– AndreyAug 11 '21 at 08:24
@Andrey Yes, the JDK 16 was the one causing issues, I have gone back to 1.8 and all is working fine. I will upgrade to 11 and see. Thanks.
– Denis KisinaAug 11 '21 at 09:13