http://toozhao.com/2012/07/13/compare-priority-of-maven-repository/
优先级:
本地仓库 >profile > pom中的repository > mirror
遇到的问题:
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
setting.xml中这样配置镜像 会导致maven忽略其他仓库 只从这个仓库中查找
pom.xml文件中配置仓库
<repositories>
<repository>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
<layout>default</layout>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>