解决Maven依赖包下载慢--阿里云让你飞
2017-05-15 16:18
260 查看
当用maven下载依赖包的时候,用官方的镜像库,那慢的真是要死要死的。阿里云也有镜像库,尝试了以下,速度真是爽到爆。
apache-maven-3.3.9/conf下面的settings.xml文件。在 中加上阿里云的镜像库。
apache-maven-3.3.9/conf下面的settings.xml文件。在 中加上阿里云的镜像库。
<mirrors> <!-- mirror | Specifies a repository mirror site to use instead of a given repository. The repository that | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used | for inheritance and direct lookup purposes, and must be unique across the set of mirrors. | <mirror> <id>mirrorId</id> <mirrorOf>repositoryId</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://my.repository.com/repo/path</url> </mirror> --> <mirror> <!--This sends everything else to /public --> <id>nexus</id> <mirrorOf>*</mirrorOf> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> </mirror> <mirror> <!--This is used to direct the public snapshots repo in the profile below over to a different nexus group --> <id>nexus-public-snapshots</id> <mirrorOf>public-snapshots</mirrorOf> <url>http://maven.aliyun.com/nexus/content/repositories/snapshots/</url> </mirror> </mirrors>
相关文章推荐
- 解决Maven无法下载相关依赖(update卡在25%现象)
- maven依赖包下载失败解决办法
- idea使用maven配置下载镜像(解决依赖文件下载不动的问题)
- Maven无法下载依赖包解决办法
- maven 使用 国内镜像的方法 解决依赖下载慢
- Maven依赖jar下载失败的解决方法
- 解决Maven下载依赖慢的问题
- 浅谈Maven的安装及修改为阿里云下载依赖
- Maven极速下载jar依赖好帮手, alibaba镜像 解决下载依赖时,进度条向蜗牛一样
- 笔记:maven依赖没有下载完成解决方法
- 解决Maven下载依赖慢的问题
- maven 使用 国内镜像的方法 解决依赖下载慢
- Maven - 解决Maven下载依赖包速度慢问题
- maven常见问题处理(3-3)Gradle编译时下载依赖失败解决方法
- maven下载flex依赖的jar包失败,解决办法
- Maven依赖包下载慢--阿里云让你飞
- 解决Maven下载依赖慢
- Maven设置本地仓库及依赖包下载不全的解决方法
- idea中maven依赖不能下载的解决办法
- maven依赖包下载失败解决办法