Maven打包出错No compiler is provided in this environment. Perhaps you are running on a JRE rather than

Maven打包出错No compiler is provided in this environment. Perhaps you are running on a JRE rather than

意思是JDK有问题,Windows--->Preferences-->搜索框输入install,找到Installed JREs

Maven打包出错No compiler is provided in this environment. Perhaps you are running on a JRE rather than

从上图中可以看出,引用的是jre而不是JDK,换成JDK

Maven打包出错No compiler is provided in this environment. Perhaps you are running on a JRE rather than

然后在打包就可以了:

打包方式:clean package -Dmaven.test.skip=true

Maven打包出错No compiler is provided in this environment. Perhaps you are running on a JRE rather than

Maven打包出错No compiler is provided in this environment. Perhaps you are running on a JRE rather than

Maven打包出错No compiler is provided in this environment. Perhaps you are running on a JRE rather than