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

相关文章
相关标签/搜索