1. Check whether idea configuration is correct

The configuration is correct as follows:

2. Check whether the MVN is correctly bound

This is where I fell! The output is still Java version: 1.8, because in the environment variable, JAVA_HOME still indicates 1.8, which needs to be changed to JDK11’s path!

Note: After modifying environment variables, restart IDEA!!

XML and setting.xml of the MVN

If not, select 11 and the following warning will appear:

If that doesn’t work, configure Maven’s setting.xml: