No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
方法一:
1.点击 Windows -> Preferences -> Java -> Installed JREs -> Add -> Standard VM, 然后选择JAVA_HOME
2.从已经安装的JRE中选择新的JRE并点击OK
方法二:
方法一都执行过后还无法打包,针对于错误的文件选中右击,Maven>>>>>Updeat project ok即可,或者使用快捷键alt + f5。