第四式 maven配置文件setting.xml的详细说明

  
    
  
        
      
    usr/local/maven  
        
      
    true  
        
      
      
      
    false  
        
      
      
    false  
        
      
      
      
      
      
            
          
        org.codehaus.mojo  
           
      
        
      
      
            
          
          
                
              
            myproxy  
                
              
            true  
                
              
            http://…  
                
              
            proxy.somewhere.com  
                
              
            8080  
                
               
            proxyuser  
                
              
            somepassword  
                
              
            *.google.com|ibiblio.org  
                
          
           
      
        
      
      
            
          
          
                
              
            server001  
                
              
            my_login  
                
              
            my_password  
                
              
              
            ${usr.home}/.ssh/id_dsa  
                
              
            some_passphrase  
                
              
              
            664  
                
              
            775  
                
              
              
                
          
           
      
        
      
      
            
          
          
                
              
            planetmirror.com  
                
              
            PlanetMirror Australia  
                
              
            http://downloads.planetmirror.com/pub/maven2  
                
              
              
            central  
                
          
           
      
        
      
      
      
      
      
            
          
          
                
              
            test  
                
              
              
              
              
              
                    
                  
                false  
                    
                  
                1.7  
                    
                  
                  
                        
                      
                    Windows XP  
                        
                      
                    Windows  
                        
                      
                    x86  
                        
                      
                    5.1.2600  
                          
                  
                    
                  
                  
                  
                        
                      
                    mavenVersion  
                        
                      
                    2.0.3  
                          
                  
                    
                  
                  
                  
                        
                      
                    /usr/local/hudson/hudson-home/jobs/maven-guide-zh-to-production/workspace/  
                        
                      
                    /usr/local/hudson/hudson-home/jobs/maven-guide-zh-to-production/workspace/  
                          
                  
                     
              
                
               
              
               
              
              
              
              
              
              
              
                  
                usr/local/winner/jobs/maven-guide  
                     
              
                
              
              
                    
                  
                  
                        
                      
                    codehausSnapshots  
                        
                      
                    Codehaus Snapshots  
                        
                      
                      
                            
                          
                        false  
                            
                          
                          
                        always  
                            
                          
                          
                        warn  
                               
                      
                        
                      
                      
                      
                                
                          
                          
                          
                               
                      
                        
                      
                    http://snapshots.maven.codehaus.org/maven2  
                        
                      
                      
                    default  
                          
                  
                     
              
                
              
              
              
              
                    
                  
                  
                      
                          
                          
                          
                      
                           
                      
                          
                          
                          
                      
                           
                      
                      
                      
                      
                  
                          
              
                
              
              
              
              
              
                      
                env-test  
                     
              
                
          
           
      
        
 

上面的配置详解和自己的实践以及不停的查找资料和maven实战书籍依然不能让我理解透彻,最终查找到一篇更加好的文章,由于太过喜欢,所以摘录过来。非常感谢,见如下:





    

    
    ${user.home}/workspace/env/maven/repository

    
    true

    
    false

    
    

        
        

    

    
    
        
            
            server_id

            
            auth_username

            
            auth_pwd

            
            path/to/private_key

            
            some_passphrase

            
            664

            
            775

            
            

        
    

    
    

        

         
        

            
            sjtugmaven

            
            sjtug maven proxy

            
            https://mirrors.sjtug.sjtu.edu.cn/maven-central/
            
            central
        

    

    
    

        
        

            
            example_proxy

            
            false

            
            https

            
            proxy.molo.com

            
            443

            
            proxy_user

            
            proxy_pwd

            
            *.google.com|ibiblio.org

        

    

    
    

        

            
            profile_id

            
            

                
                false

                
                9.9

                
                

                    
                    Windows XP

                    
                    Windows

                    
                    x86

                    
                    5.1.2600

                

                
                

                    
                    mavenVersion

                    
                    2.0.3

                
                
                
                

                    
                    /path/to/active_on_exists

                    
                    /path/to/active_on_missing

                

            
            
            

                
                this.property.is.accessible.when.current.profile.actived

            

            
            
                

                
                

                    
                    maven_repository_id

                    
                    maven_repository_name

                    
                    http://host/maven

                    
                    default

                    
                    

                        
                        false

                        
                        always

                        
                        warn

                    

                    
                    
                        
                        
                        
                    

                

                

            

            
            

        

    

    
    


你可能感兴趣的:(第四式 maven配置文件setting.xml的详细说明)