我用的是Netbeans集成的Maven工具,它的配置文件的地址是:java
/home/sunny/netbeans-8.2/java/maven/conf/settings.xmlbash
sudo vi settings.xml
搜索mirrors標籤:maven
<mirrors> <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror> </mirrors>