大家从如下例子里,可以看到我配置了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配置多个仓库共同使用的方法】
推荐阅读
- 买电脑,应该关心的6个配置!哪种电脑不能买?
- linux-centos网络配置bond
- Centos6下网卡启动、配置ifcfg-eth0教程
- CISA 美国网络安全和基础设施安全局 和CrowdStrike发布多个 Log4j 扫描器但没有一个能检测到所有的格式
- 配置与 Hyper-V 虚拟机的远程桌面连接
- 网易游戏有哪些?
- Win下部署多个MySQL数据库实例
- Nginx可视化配置神器
- 华为,H3C和锐捷:一起学习如何配置VRRP
- 如何在Rescue模式下配置网络和SSH登录
