Maven系列1--settings.xml 配置详解

1.先看一个例子


        
                
                        
                        nexus-public-snapshots
                        public-snapshots
                        http://repos.d.xiaonei.com/nexus/content/groups/public-snapshots
                        
                
                
                        
                        nexus
                        renren_central
                        http://repos.d.xiaonei.com/nexus/content/groups/public
                
        
        
                
                        
                        development
                        
                        
                        
                                
                                        renren_central
                                        
                                        http://central
                                        
                                        
                                                true
                                        
                                        
                                        
                                                true
                                        
                                
                                
                                        public-snapshots
                                        http://central
                                        
                                                true
                                        
                                        
                                                true
                                        
                                
                                
                                        adernexus
                                        Ader nexus
                                        http://nexus.ad.jebe.renren.com:13114/nexus/content/groups/public/
                                        
                                

                                
                        
                        
                        
                                
                                        maven_central
                                        http://repos.d.xiaonei.com/nexus/content/groups/public
                                        
                                                true
                                        
                                        
                                                true
                                        
                                
                        
                
                
                        
                        public-snapshots
                        
                                
                                        public-snapshots
                                        http://public-snapshots
                                        
                                                false
                                        
                                        
                                                true
                                        
                                
                        
                        
                                
                                        public-snapshots
                                        http://public-snapshots
                                        
                                                false
                                        
                                        
                                                true
                                        
                                
                        
                
        
        
                development
        

        

        
        
                
                        archiva.internal
                        maven
                        xxx
                
                
                        archiva.snapshots
                        maven
                        xxx
                
                
                        Ad-nexus-releases
                        admin
                        xxx
                
                
                        Ad-nexus-snapshots
                        admin
                        admin123
                
                
                        public
                        admin
                        xxx
                
        


2.再看一个例子




 
 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.5
    
    
     
     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/
    
   
   
   
    /ebs1/build-machine/usr/local/hudson/hudson-home/jobs/maven-guide-
   
   
   
    
    
     
     codehausSnapshots
     
     Codehaus Snapshots
     
     
      
      false
      
      always
      
      warn
     
     
     
      
     
     
     http://snapshots.maven.codehaus.org/maven2
     
     default
    
   
   
   
    
                     
           
      
     
     
      
     
     
          
        
        
   
    
    env-test
   
  
 




你可能感兴趣的:(maven,maven,setings.xml,配置,详解)