配置本地Maven默认指向私服

阅读更多

1,确认已经配置好了本地私服,参考

Maven私服nexus安装配置

 

2,下载maven客户端:apache-maven-3.3.1

 

3,配置私服地址:apache-maven-3.3.1\conf\settings.xml

 




  ${user.home}/.m2/repository
  
  
  
    
      nexus-releases
      admin
      admin
    
    
      nexus-snapshots
      admin
      admin
    
  
  
    
      nexus
      *
      http://私服IP:私服端口/nexus/content/groups/public/
    
  

  
    
      nexus
      
        
          central
          http://central/
          
            true
          
          
            true
          
        
      
      
        
          central
          central/
          
            true
          
          
            true
          
        
      
    

  
  
    nexus
  

 

 

你可能感兴趣的:(配置本地Maven默认指向私服)