IntelliJ IDEA 建立 maven web項目慢解決辦法

在 使用 IntelliJ IDEA 建立maven web 項目的時候,生成的時候,很是慢, 能夠經過在以下設置解決:html

 

這裏在Properties中添加一個參數  archetypeCatalog=internal,不加這個參數,在maven生成骨架的時候將會很是慢,有時候會直接卡住。web

archetypeCatalog表示插件使用的archetype元數據,默認值爲remote,local,即中央倉庫archetype元數據(http://repo1.maven.org/maven2/archetype-catalog.xml)加上插件內置元數據的和  apache

 

archetypeCatalog 表示建立項目的時候,從哪裏獲取項目模板, 值有 :maven

  • internal to use the internal catalog only.
  • local to use the local catalog only.
  • remote to use the maven's remote catalog. No catalog is currently provided.
  • file://path/to/archetype-catalog.xml to use a specific local catalog. When the catalog file is named archetype-catalog.xml, it can be omitted.
  • http://url/to/archetype-catalog.xml to use a specific remote catalog. When the catalog file is named archetype-catalog.xml, it can be omitted.

具體的官網的解釋:ide

http://maven.apache.org/archetype/maven-archetype-plugin/examples/generate-alternative-catalog.htmlurl

相關文章
相關標籤/搜索