<mirrors> <mirror> <id>nexus-aliyun</id> <mirrorOf>nexus-aliyun</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirror> <mirror> <id>central</id> <name>Maven Repository Switchboard</name> <url>http://repo1.maven.org/maven2/</url> <mirrorOf>central</mirrorOf> </mirror>
<mirror> <id>repo2</id> <mirrorOf>central</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://repo2.maven.org/maven2/</url> </mirror>
<mirror> <id>jboss-public-repository-group</id> <mirrorOf>central</mirrorOf> <name>JBoss Public Repository Group</name> <url>http://repository.jboss.org/nexus/content/groups/public</url> </mirror> </mirrors>
第一个镜像配置的是阿里云的,在国内算速度比较快的,可是不能把<mirrorOf>nexus-aliyun</mirrorOf> 写成<mirrorOf>*</mirrorOf> ,这样的话阿里镜像库就代理了全部的仓库,结果是有些资源没法找到(阿里库里面资源不全)。maven