在.m2/setting.xml里面,配置全局的一般的全局的仓库:
<mirror>
<id>erp_releases</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://全局仓库地址</url>
</mirror>
然后在自己的工程pom里面,配置当前工程特殊需要的仓库
<repositories>
<repository>
<id>erp</id>
<url>http://特殊仓库地址</url>
</repository>
</repositories>
理论上,会先从特殊仓库下载,没有找到再到标准仓库下载