IDEA Mave打jar报错:No compiler is provided in this environment.

现象:[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

IDEA Mave打jar报错:No compiler is provided in this environment.

解决方案:
1、查看本地的JAVA_HOME系统环境变量是否配置正确

IDEA Mave打jar报错:No compiler is provided in this environment.

2、设置JAVA_HOME,重新编译、打包

IDEA Mave打jar报错:No compiler is provided in this environment.