Maven配置多个仓库共同使用的方法( 二 )


大家从如下例子里,可以看到我配置了aliyun、pentaho、repo1和repo2四个仓库,这样再执行mvn命令,他就会从这四个仓库循环去查找包,第一个找不到就去第二个找 。。。
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">...<activeProfiles><activeProfile>aliyun</activeProfile><activeProfile>pentaho</activeProfile><activeProfile>repo1</activeProfile><activeProfile>repo2</activeProfile></activeProfiles></settings>
【Maven配置多个仓库共同使用的方法】


推荐阅读