如何解决maven archetype加载太慢的方法

有时候在构建maven项目时,archetype加载不出来,一直在Retrieving archetype...,现象如下:

有两种解决方法:

  ①点击链接下载:http://files.cnblogs.com/files/hujinshui/archetype-catalog.zip

  ②在浏览器上访问http://repo1.maven.org/maven2/archetype-catalog.xml把页面上的源码复制出来,命名为xxxxx.xml文件,然后将xml文件引入eclipse,如下图:

最后,选择你添加的archetype文件:

是不是感觉比以前快了好几倍呢,哈哈!

原文地址:https://www.cnblogs.com/hujinshui/p/6732673.html