repo pos 文件 元数据 spa repos mirrorof oca
- archetypeCatalog = internal
archetypeCatalog 表示插件使用的 archetype 元数据,不加这个参数时默认为 remote,
local,即中央仓库 archetype 元数据,由于中央仓库的 archetype 太多了,所以导致很慢,指定 internal 来表示仅使用内部元数据。
加入 阿里云的一个中央仓库
- <mirror>
- <id>
- alimaven
- </id>
- <mirrorOf>
- central
- </mirrorOf>
- <name>
- aliyun maven
- </name>
- <url>
- http://maven.aliyun.com/nexus/content/repositories/central/
- </url>
- </mirror>
即修改 settings.xml 文件,加入上面的配置即可
idea 创建 maven 项目慢的解决方案
来源: http://www.bubuko.com/infodetail-2225547.html