解决idea在pom.xml下载依赖包速度慢
2018-11-29 10:34
176 查看
版权声明:Hello,Bug https://blog.csdn.net/AdminPwd/article/details/84617244
本人第一次写,请各位老鸟多多指教
在Pom.xml右键找到然后选择“open settings.xml”或者 “create settings.xml”,把下面代码复制一波,再重启一波idea
[code]<?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <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> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror> <mirror> <id>uk</id> <mirrorOf>central</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://uk.maven.org/maven2/</url> </mirror> <mirror> <id>CN</id> <name>OSChina Central</name> <url>http://maven.oschina.net/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror> <mirror> <id>nexus</id> <name>internal nexus repository</name> <!-- <url>http://192.168.1.100:8081/nexus/content/groups/public/</url>--> <url>http://repo.maven.apache.org/maven2</url> <mirrorOf>central</mirrorOf> </mirror> </mirrors> </settings>
亲测可用,速度很快
相关文章推荐
- IDEA maven 无法下载依赖 jar包, pom.xml 报错
- 【IDEA】IDEA中maven项目pom.xml依赖不生效解决
- (Linux+IDEA+scala+sbt)sbt下载依赖包速度慢解决办法(亲测可用)
- 个人解决的一个IDEA项目中不能引用pom文件中添加的依赖问题
- idea中maven依赖不能下载的解决办法
- pom.xml 依赖冲突解决办法
- maven构建Hadoop项目时无法通过加载pom.xml下载依赖jar
- 解决POM下载依赖缓慢问题
- 【maven】——在pom.xml中引入的依赖没有在其他pom.xml中使用那么依赖的jar是不会下载到本地仓库的
- Maven - 解决Maven下载依赖包速度慢问题
- 解决从SVN导入maven项目pom.xml无法下载的问题
- IDEA在pom文件中添加bootstrap依赖不成功的解决办法(补充方法)
- Maven项目的pom.xml依赖下载失败或是取消之后如何重新更新
- 解决使用idea maven创建web项目后,提示Failed to create maven project: ‘…/pom.xml’ already exists in VFS的处理办法
- 解决IntelliJ IDEA maven库下载依赖包速度慢的问题
- idea在pom.xml中加入dependency后里external libraries的引用不显示解决办法
- 一份直接去外网下载依赖包的pom文件,pom.xml
- idea中pom.xml文件怎样配置依赖和资源路径的理解
- 解决maven项目pom依赖下载缓慢(配置国内镜像)
- idea解决maven pom依赖下载失败