問題:
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
最終解決方案:
原因是eclipse默認是運行在jre上的,但是maven插件需要使用jdk,因此需要在eclipse修改Installed JRES