maven国内镜像配置的方法步骤

网友投稿 259 2022-12-02


maven国内镜像配置的方法步骤

Maven是当前流行的项目管理工具,但官方的库在国外经常连不上,连上也下载速度很慢。国内oschina的maven服务器很早之前就关了。今天发现阿里云的一个中央仓库,亲测可用。

alimaven

central

aliyun maven

http://maven.aliyun.com/nexus/content/repositories/central/

修改${maven.home}/conf或者${user.home}/.m2文件夹下的settings.xml文件,在标签下加入上述内容即可。如下:

xmlns:xsi="http://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">

alimaven

central

aliyun maven

http://maven.aliyun.com/nexus/content/repositories/central/

repo1

central

Human Readable Name for this Mirror.

http://repo1.maven.org/maven2/

repo2

central

http:// Human Readable Name for this Mirror.

http://repo2.maven.org/maven2/

xmlns:xsi="http://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">

alimaven

central

aliyun maven

http://maven.aliyun.com/nexus/content/repositories/central/

repo1

central

Human Readable Name for this Mirror.

http://repo1.maven.org/maven2/

repo2

central

http:// Human Readable Name for this Mirror.

http://repo2.maven.org/maven2/


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:java并发编程专题(七)
下一篇:深入了解java NIO之Selector(选择器)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~