Maven修改镜像和本地仓库

修改为阿里云的镜像


alimaven
aliyun maven
http://maven.aliyun.com/nexus/content/groups/public/

*

 

修改本地仓库地址

D:/Tools/repository

 

xml version="1.0" encoding="UTF-8"?>




<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:/Tools/repositorylocalRepository>
  

  

  
  <pluginGroups>
    
  pluginGroups>

  
  <proxies>
    
  proxies>

  
  <servers>
    

    
  servers>

  
  <mirrors>
    
      <mirror>
      <id>alimavenid>
      <name>aliyun mavenname>
      <url>http://maven.aliyun.com/nexus/content/groups/public/url>
      
      <mirrorOf>*mirrorOf>
      mirror>
  mirrors>

  
  <profiles>
    

    
  profiles>

  
settings>
View Code

 

你可能感兴趣的:(Maven修改镜像和本地仓库)