Maven 中央仓库地址:

Maven 中央仓库地址:

1. http://www.sonatype.org/nexus/

2. http://mvnrepository.com/ (本人推荐仓库)

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

1. 首先配置Maven的setting.xml文件中的mirror节点,配置为你的仓库地址,这个文件可以分为全局的和局部的。全局的setting.xml位于M2_HOME/conf, 局部的文件可以自定义文件位置,例如(d:\repository\setting.xml).
配置如下:
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf> 
</mirror>
这个配置是阿里云的仓库。
2. 上面的配置完成后,需要配置Eclipse中Maven的属性。配置方法Window --> Preferences --> Maven --> User Settings. 在User Settings 处理选择上面你配置好的setting.xml文件即可。
完成这两个步骤,基本就ok了,如果还有问题,找一下谷歌或者度娘吧!

猜你喜欢

转载自nethub2.iteye.com/blog/2354433