为Maven项目创建本地Archetype配置
创建本地Archetype
每次通过archetype创建项目时,从网络获取Archetype很耗时,有时会卡住一直检索不出需要的archetype,其实是因为archetype 的xml太大检索慢,把该索引文件放本地会大大加快检索速度。
下载archetype-catalog.xml
通过迅雷或者http下载配置文件,下载地址:
http://repo1.maven.org/maven2/archetype-catalog.xml
eclipse设置
添加本地配置
Eclipse -> preferences -> Maven -> Archetypes
参考
参考博客
[1]: https://www.jianshu.com/p/69c12639d57a 博客1