maven-install报错:No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

解决:1、windows-java-install:导入jdk

    2、windows-java-install-execute environment:设置所选中的jdk