[ERROR] COMPILATION ERROR : [INFO] [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?[INFO] 1 er ...
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.975 s
Maven install時報這個錯誤,顯然是jdk運行環境的問題,重新設置eclipse中Installed JREs即可
Window---->Preferences---->Java---->Installed JREs---->Add
在JRE home:那一欄中定位到你jdk的安裝目錄,比如我的是 E:\JDK\jdk1.7 ,finish保存退出。
項目上右鍵,在Build Path中設置項目使用的JRE環境,搞定收工,再次Maven install顯示BUILD SUCCESS