所遇问题:
![](https://img.haomeiwen.com/i10161152/84581146d0c17e10.png)
英文描述:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project busiservice: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
中文描述:此环境中未提供编译器,你可能使用jre运行而不是jdk。
引发原因:Eclipse默认在jre上运行,maven install 编译需要jdk中的编译器,而jre中并没有
问题解决:
![](https://img.haomeiwen.com/i10161152/614172a597b89ff4.png)
![](https://img.haomeiwen.com/i10161152/66ca749c8dcaaba8.png)
![](https://img.haomeiwen.com/i10161152/b87d928fc808c672.png)
![](https://img.haomeiwen.com/i10161152/09265fcc3d9ed86c.png)
![](https://img.haomeiwen.com/i10161152/aad97a15cfa753d0.png)
![](https://img.haomeiwen.com/i10161152/7bf29bcb1a02478e.png)
![](https://img.haomeiwen.com/i10161152/c0032184f3057f05.png)
网友评论