解決Intellij IDEA 經過archetype建立Maven項目緩慢的問題

1.因爲默認狀況下,根據archetype建立maven項目會從網絡下載catalog文件,致使建立maven項目緩慢html

Searching for remote catalog: http://repo1.maven.org/maven2/archetype-catalog.xml

2.解決辦法能夠設置使用本地catalog文件,在IDEA中設置archetype的使用方式爲local;apache

-DarchetypeCatalog=local

image

2.1 從here下載catalog文件保存到本地。網絡

2.2根據 官網介紹,把下載的文件放到%userprofile%/.m2目錄下便可。maven

image

 

image

相關文章
相關標籤/搜索