Eclipse下,修改MAVEN 中央仓库地址,解决maven下载慢问题
作用于所有工作空间:
1、逐项打开:eclipse->preference->Maven->User Settings。按窗口中的User Settings文本框显示的路径,创建settings.xml文件,或修改路径后创建文件。
2、关闭窗口后重新打开,点击“open file”,在IDE中打开该配置文件,出现“could not read settings.xml”不必管。
3、复制下列内容至配置文件,其中<mirror></mirror>部分为国内镜像。
<settings 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>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://repo.maven.apache.org/maven2</url><mirrorOf>central</mirrorOf></mirror></mirrors><profiles><profile><id>default</id><repositories><repository><id>nexus</id><name>local private nexus</name><url>http://maven.oschina.net/content/groups/public/</url><releases><enabled>true</enabled></releases><snapshots><enabled>false</enabled></snapshots></repository></repositories><pluginRepositories><pluginRepository><id>nexus</id><name>local private nexus</name><url>http://maven.oschina.net/content/groups/public/</url><releases><enabled>true</enabled></releases><snapshots><enabled>false</enabled></snapshots></pluginRepository></pluginRepositories></profile></profiles> </settings>
4、"apply"后配置生效,重新编译即可。
转载于:https://www.cnblogs.com/redhat0019/p/10669098.html
Eclipse下,修改MAVEN 中央仓库地址,解决maven下载慢问题相关推荐
- Maven中央仓库地址大全,Maven中央仓库配置示例
< Maven 中央仓库地址大全 > 在上一篇文章中完成了 < Maven镜像地址大全 >,后来又花了时间又去收集并整理了关于 maven 远程仓库地址,并整理于此,关于 Ma ...
- Maven 中央仓库地址大全
1. http://www.sonatype.org/nexus/ 2. http://mvnrepository.com/ (本人推荐仓库) 3. http://repo1.maven.org/ma ...
- Maven中央仓库地址大全
一.一般使用Maven中央仓库地址 1. http://www.sonatype.org/nexus/ 2. http://mvnrepository.com/ (本人推荐仓库) 3. http:// ...
- Maven中央仓库地址配置大全
第一种:直接在项目的 pom.xml 文件中进行修改(不推荐,尤其是在多人协助的开发过程中非常的费事费力): 第二种:将 Maven 的远程仓库统一的配置到 Maven 的 Settings.xml ...
- Maven 中央仓库地址
Maven 中央仓库地址: http://www.sonatype.org/nexus/ http://mvnrepository.com/ (本人推荐仓库) http://repo1.maven.o ...
- Maven中央仓库地址(实用版)
最近做项目的时候,一直发现常用的oschina maven源一直都没有反应,后面发现原来oschina竟然关闭了maven源服务,后面经同事推荐了阿里云的maven源,这速度杠杠的 Maven 中央仓 ...
- Maven中央仓库地址整理
最近做项目的时候,一直发现常用的oschina maven源一直都没有反应,后面发现原来oschina竟然关闭了maven源服务,后面经同事推荐了阿里云的maven源,这速度杠杠的 Maven 中央仓 ...
- Maven中央仓库地址
Maven 中央仓库地址有一下几个(可能这里不全,但一定能够使用) 1:http://mvnrepository.com/ (属于美化版本,国外网站,在国内可能下载比较慢) 2:http://r ...
- 最全的Maven中央仓库地址大全
#史上Maven 中央仓库地址大全 1.阿里中央仓库(首推1) <repository><id>alimaven</id><name>aliyun ma ...
- maven中央仓库地址(支持db2,informix等)
maven中央仓库地址(以下设置写在pom.xml文件里): <repositories> <repository><id>nexus</id>< ...
最新文章
- C/C++:Windows编程—Inline Hook内联钩子(上)
- [20170508]listagg拼接显示字段.txt
- PHP数据处理之下载远程图片到本地
- 【TSP】基于matlab GUI模拟退火算法求解旅行商问题【含Matlab源码 1083期】
- 测试开发如何设计测试用例
- wps批量删除sheet 批量删除工作簿
- 大理旅游策划方案——定位“风花雪月”,大理游客翻倍!
- 访问网络共享找不到网络名的解决方案
- 使用 C++ 开发出 【飞机大战】
- 58域内路由和域间路由
- 第一句超浪漫,第二句超不浪漫
- 关于偶的专业-信息工程
- Qt 多显示器扩展模式
- Hadoop国内镜像下载地址:极速
- 收集了一些Weblogic监控工具
- 上善若水——甲骨文——文字文化
- VIM中的替换命令使用
- 林铭:10.29今日黄金原油走势分析,美国9月PCE物价指数会打破僵局?
- 反常积分的性质与收敛判别
- php生成超链接完整代码_PHP 超链接 抓取实现代码
热门文章
- 通过AT指令实现ESP8266模块和TCP服务器的数据传输
- 年度调薪一般涨多少_涨了!长沙各小区房价曝光!快来看看你的房子涨了多少钱...
- cad制图初学入门_CAD自学不要怕,这里有你需要的CAD制图初学入门教程!
- 排队论模型的monteCarlo法仿真
- Python编程手册系列 - 日历、日期、时间相关内建模块详解
- 华为网络拒绝接入_网络拒绝接入什么意思
- 视觉传达对中职计算机教育影响,自考视觉传达设计毕业论文:平面设计专业信息化教学资源库建设...
- python︱写markdown一样写网页,代码快速生成web工具:streamlit 缓存(五)
- R︱并行计算以及提高运算效率的方式(parallel包、clusterExport函数、SupR包简介)
- 数据挖掘概念与技术_文本挖掘