Maven阿里云镜像的settings.xml配置

1. 文件目录
Maven阿里云镜像的settings.xml配置_第1张图片
Maven阿里云镜像的settings.xml配置_第2张图片
Maven阿里云镜像的settings.xml配置_第3张图片
2.修改代码






<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 http://maven.apache.org/xsd/settings-1.0.0.xsd">
  
  <localRepository>D:\repositorylocalRepository>

  

  

  
  <pluginGroups>
    
  pluginGroups>

  
  <proxies>
    
  proxies>

  
  <servers>
    

    
  servers>

  
  <mirrors>
    
	<mirror>
     <id>aliyunmavenid>
     <mirrorOf>*mirrorOf>
     <name>阿里云公共仓库name>
     <url>https://maven.aliyun.com/repository/publicurl>
    mirror>
     <mirror>
     <id>aliyunmavenid>
     <mirrorOf>*mirrorOf>
     <name>阿里云谷歌仓库name>
     <url>https://maven.aliyun.com/repository/googleurl>
    mirror>
    <mirror>
     <id>aliyunmavenid>
     <mirrorOf>*mirrorOf>
     <name>阿里云阿帕奇仓库name>
     <url>https://maven.aliyun.com/repository/apache-snapshotsurl>
    mirror>
    <mirror>
     <id>aliyunmavenid>
     <mirrorOf>*mirrorOf>
     <name>阿里云spring仓库name>
     <url>https://maven.aliyun.com/repository/springurl>
    mirror>
    <mirror>
     <id>aliyunmavenid>
     <mirrorOf>*mirrorOf>
     <name>阿里云spring插件仓库name>
     <url>https://maven.aliyun.com/repository/spring-pluginurl>
    mirror>
  mirrors>

  
  <profiles>
    

    
  profiles>

  
settings>

你可能感兴趣的:(maven)