maven的setting文件详解

  
    
  
        
      
    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  
                     
              
                
          
           
      
        
 

上面的配置文件对各个节点的含义及作用都有注解。实际应用中,经常使用的是有限几个节点,其他节点使用默认值足够应对大部分的应用场景。

你可能感兴趣的:(项目)