maven settings.xml 配置文件

这是maven 自定义仓库配置方案。本地仓库默认放在C盘,如果要想将本地仓库转移到指定到自动以的位置,就需要配置setting.xml,下载后只需修改本地仓库的配置即可!

maven的setting.xml文件如下:



  
  /Users/wangkang/.m2/repository
  
  
  
    
  

  
  
    
  

  
  
    
  

  
  
    
    
        alimaven
        central
        aliyun maven
      http://maven.aliyun.com/nexus/content/repositories/central/
    
     
  
  
  
  
    
    
    

      
        
          nexus
          local private nexus
          http://maven.oschina.net/content/groups/public/
          
      true
      
          
      false
      
        
      
    
    
      nexus
          local private nexus
          http://maven.oschina.net/content/groups/public/
          
      true
      
          
      false
      
    
    
    
    

  

  


一,把localRepository 设置为你自己的本地仓库地址:


image.png

二,把mirror设置为阿里的maven地址,这样下载jar包速度快

image.png

你可能感兴趣的:(maven settings.xml 配置文件)