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_第1张图片

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

Maven打包出错No compiler is provided in this environment. Perhaps you are running on a JRE rather than_第2张图片

然后在打包就可以了:

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

Maven打包出错No compiler is provided in this environment. Perhaps you are running on a JRE rather than_第3张图片

你可能感兴趣的:(Maven)