1. 程式人生 > >mac 2018 idea 無法 import匯入或開啟maven 專案

mac 2018 idea 無法 import匯入或開啟maven 專案

檢視日誌 都是報 ution.rmi.RemoteProcessSupport - Unrecognized option: -d64 類似這樣的錯誤。
查詢了各種案例
https://segmentfault.com/a/1190000003012725

我的本地環境是 JAVA 11,IDEA 是執行在JAVA 1.8 中的(IDEA 自帶JDK),
是不是我把 maven 的JDK 設定版本過高引起的呢?(這邊我改為了和本地JDK一樣的版本 JDK 11)
開啟IDEA 配置項
Build,execution,deployment -> Maven->Importing
在右側JDK for importer

改為 Use Internal JRE,點選 APPLY 重新開啟 或匯入maven專案,沒有錯誤了,或一閃就退出了。

解決成功