Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile)

問題:

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啦~

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章