1. 程式人生 > >匯入maven專案時報Plugin not found in any plugin repository的解決方法

匯入maven專案時報Plugin not found in any plugin repository的解決方法

在匯入Maven專案時,報此類錯誤是由於找不到本地倉庫。所以需要在eclipse的windows-->preferences中找到User Setting -->找到UserSetting對應的路徑。即Maven解壓後目錄下的.m2資料夾下的settings.xml配置檔案(這個是我的路徑:D:\API\apache-maven-3.0.4\.m2\settings.xml)。下面的Local Repository會自動定位到settings.xml檔案中的local Repository的配置。可以自己更改即新建一個資料夾,將路徑名放到配置中(我的路徑:D:/API/mvnlocal),這樣就不會報找不到外掛庫的錯誤了。