Eclipse Luna Service Release 2 (4.4.2) 在执行mvn install时出现如下错误:
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project cloud_manager: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
解决方案:
Eclipse 菜单Windows/Preferences做如下配置,然后执行ALT+F5更新maven工程,最后执行mvn install即可通过。