天天看點

No plugin found for prefix 'maven' in the current project and in the plugin groups

今天安裝maven時,在指令行中敲入"mvn help:system"後,看樣子是需要從遠端安裝一些東西。

結果報如題那樣的錯誤,build失敗。

敲入"mvn -v" 傳回的是正确的資訊(即系統環境變量配置的沒問題)。

百度了一圈,似乎問題出在maven安裝目錄下/conf/setting.xml這個配置檔案。

在檔案中配置一個鏡像位址即可。

No plugin found for prefix 'maven' in the current project and in the plugin groups

然後 再次運作“mvn help:system”,成功,Build SUCCESS

No plugin found for prefix 'maven' in the current project and in the plugin groups