国情

1
sudo vim /opt/maven/conf/settings.xml
1
2
3
4
5
6
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
</mirror>
1
cp /opt/maven/conf/settings.xml ~/.m2/