maven的配置

1、setting.xml 配置




    D:\program\maven\repository

    
    

    
        
          optional
          true
          http
          uesername
          password
          代理服务器IP
          端口
          localhost|127.0.0.1
        

    

    
    

    
        
            aliyun
            
            central
            aliyun
            https://maven.aliyun.com/repository/public
        
    

    
        
            aliyun
            
                
                    aliyun
                    https://maven.aliyun.com/repository/public
                    
                        true
                    
                    
                        false
                    
                
            
            
                
                    aliyun
                    https://maven.aliyun.com/repository/public
                    
                        true
                    
                    
                        false
                    
                               
            
        
    

    
        aliyun
    



2、私有仓库配置:





    
    F:\MyProject\maven\repository

    
    

    
    

    
    
        
            nexus-releases
            admin
            admin123
        
        
          nexus-snapshots  
          admin  
          admin123  
        
    

    
    
        
            nexus-releases
            *
            http://IP:8081/nexus/content/groups/public/
        
    

    
        
            nexus
            
                
                    nexus-releases
                    http://IP:8081/nexus/content/repositories/releases/
                    
                        true
                    
                    
                        true
                    
                
            
            
                
                    nexus-releases
                    http://IP:8081/nexus/content/repositories/releases/
                    
                        true
                    
                    
                        true
                    
                               
            
        
    

    
        nexus
    



3、在pom文件中指定仓库优先于setting.xml


            spring
            https://maven.aliyun.com/repository/spring
            
                true
            
            
                false
            
        

你可能感兴趣的:(maven的配置)