IntelliJ IDEA设置自带的maven为国内镜像
找到idea中maven中的“settings.xml”位置
一般在idea安装目录下的“D:\Program Files\JetBrains\IntelliJ IDEA\plugins\maven\lib\maven3\conf”
有maven2和maven3选择
打开settings.xml,其中查找“
在“
查找“
在“
更多的AliRepo仓库服务,可以查看https://maven.aliyun.com/mvn/view 获取
https://maven.aliyun.com/mvn/guide
| Repository | Type | Policy | Path |
|---|
| apache snapshots | proxy | SNAPSHOT | https://maven.aliyun.com/repository/apache-snapshots |
| central | proxy | RELEASE | https://maven.aliyun.com/repository/central |
| proxy | RELEASE | https://maven.aliyun.com/repository/google | |
| gradle-plugin | proxy | RELEASE | https://maven.aliyun.com/repository/gradle-plugin |
| jcenter | proxy | RELEASE | https://maven.aliyun.com/repository/jcenter |
| spring | proxy | RELEASE | https://maven.aliyun.com/repository/spring |
| spring-plugin | proxy | RELEASE | https://maven.aliyun.com/repository/spring-plugin |
| public | group | RELEASE | https://maven.aliyun.com/repository/public |
| releases | hosted | RELEASE | https://maven.aliyun.com/repository/releases |
| snapshots | hosted | SNAPSHOT | https://maven.aliyun.com/repository/snapshots |
| grails-core | proxy | RELEASE | https://maven.aliyun.com/repository/grails-core |
| mapr-public | proxy | RELEASE | https://maven.aliyun.com/repository/mapr-public |
请点击仓库查看详情 IEDA中使用maven创建Project过程网络获取时间漫长,Properties中创建
Name=archetypeCatalog
Value=internal
可选择内置仓库优先。