.
.
.
Because it is the first time to configure Maven, there have been many mistakes, so I will list one or two.
When the Java_Home environment variable cannot be found, as shown in the figure.
At this time, it may be that your Java_Home path is configured incorrectly. In the Java_Home path, delete \bin and follow the path with \bin.
Such as %java_home%\bin, instead of writing directly in java_home.