Global Configuration
Modify settting file
add a child node in the mirrors label.
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
<MirrorOf> may be provided to mirror the central repository specified.
<MirrorOf> central </ mirrorOf> to mirror the central warehouse called "central" of; <mirrorOf> * </ mirrorOf> to mirror all central warehouse.
The default Maven central repository id is central. id is unique.
Single project configuration, modify pom file
<repositories>
<repository>
<id>central</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<layout>default</layout>
<!-- 是否开启发布版构件下载 -->
<releases>
<enabled>true</enabled>
</releases>
<!-- 是否开启快照版构件下载 -->
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>