描述:用idea中终端执行mvn package:No compiler is provided in this environment. Perhaps you are running on a JRE
解决方案:
1、检查jdk环境是否配置正确
2、检查项目中配置的Project SDK和Project language level
3、检测Preferences | Build, Execution, Deployment
---->Build Tools -> Maven -> Runner -> JRE
---->Compiler -> Java Compiler -> Project bytecode version