IDEA卡在Downloading maven plugins的解決方法

IDEA卡在Downloading maven plugins的解決方法

IDEA創建Maven項目時一直卡在Downloading maven plugins for,原因是Maven自帶鏡像加載比較緩慢,可以換成阿里鏡像。
打開Maven安裝目錄,點擊conf,打開settings.xml
在這裏插入圖片描述
在<mirror>標籤裏面添加

<mirror>
    <id>alimaven</id>
    <name>aliyun maven</name>
    <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
    <mirrorOf>central</mirrorOf> 
</mirror>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章