MangoCool

IDEA配置maven(配置阿里云中央仓库)

2017-03-02 17:27:09   作者:MangoCool   来源:MangoCool

idea配置maven后,因为在国内访问,速度很慢,甚至没法下载依赖,于是决定使用国内的中央仓库,经查找开源中国,阿里云等都有,我这里使用阿里云的。

首先找到idea中配置maven settings.xml路径

File->Settings,再搜索maven,找到User setting file的路径:

我的E:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.3.4\.m2\settings.xml。

在文件中找到mirrors节点,添加配置:

<mirror>
	<id>alimaven</id>
	<name>aliyun maven</name>
	<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
	<mirrorOf>central</mirrorOf>       
</mirror>

即可!

标签: idea maven aliyun mirror

分享:

上一篇java.lang.RuntimeException: Found multiple defaults.yaml resources. You're probably bundling the Storm jars with your topology jar.

下一篇txt文本数据数据载入oracle

关于我

崇尚极简,热爱技术,喜欢唱歌,热衷旅行,爱好电子产品的一介码农。

座右铭

当你的才华还撑不起你的野心的时候,你就应该静下心来学习,永不止步!

人生之旅历途甚长,所争决不在一年半月,万不可因此着急失望,招精神之萎葸。

Copyright 2015- 芒果酷(mangocool.com) All rights reserved. 湘ICP备14019394号

免责声明:本网站部分文章转载其他媒体,意在为公众提供免费服务。如有信息侵犯了您的权益,可与本网站联系,本网站将尽快予以撤除。