maven中setting.xml 标签 mirror,repository的配置

您所在的位置:网站首页 pom文件中的repository maven中setting.xml 标签 mirror,repository的配置

maven中setting.xml 标签 mirror,repository的配置

2023-09-01 15:44| 来源: 网络整理| 查看: 265

配置一

优先从mirror拉取资源,再从下面的repository依次读取,repository可以配多个

${user.home}/.m2/repository D:\dev\apache-maven-3.8.4\repository alimaven aliyun maven https://maven.aliyun.com/repository/central central jdk1.8 true 1.8 UTF-8 1.8 1.8 1.8 xxxxxxxx xxxxxxxx xxxxxxxx https://xxxxxxxx/repository/central true true jdk1.8 xxxxxxxx 配置二

mirror中扩展阿里云的镜像,第二个mirror默认不会生效,另外再按配置一添加repository不会生效,这里不知道是不是mirror中*的影响,暂未测试

D:\dev\apache-maven-3.8.4\repository nexus-aliyun Nexus aliyun *,!jeecg,!jeecg-snapshots,!mapr-releases,!cloudera http://maven.aliyun.com/nexus/content/groups/public confluent confluent confluent https://packages.confluent.io/maven/ jdk1.8 true 1.8 UTF-8 1.8 1.8 1.8 jdk1.8 这里在pom.xml中添加下面配置,使第二个mirror生效

注意这里的id与第二个mirror中的mirrorOf对应

confluent https://packages.confluent.io/maven/


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3