問題:
Eclipse啓動項目時出現以下問題。
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project e3-manager-pojo: Compilation failure
解決思路:
ERROR中已經提示了“No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?”
那麼接下來我就把JRE改成JDK吧。
解決步驟:
1、點擊工具欄上的“Window”——“Preferences”,在下圖中按照步驟進行操作:
2、在下圖中通過Directory找到JDK的路徑。
3、保存設置。
4、啓動項目,OK啦~