Maven常用Settings.xml

Maven常用Settings.xml

<? xml version="1.0" encoding="UTF-8" ?>  
< settings >  
    
< servers >  
        
< server >  
            
< id > tomcat </ id >  
            
< username > tomcat </ username >  
            
< password > tomcat </ password >  
            
< privateKey > ${usr.home}/.ssh/id_dsa </ privateKey >    
            
< passphrase > some_passphrase </ passphrase >    
            
< filePermissions > 664 </ filePermissions >    
            
< directoryPermissions > 775 </ directoryPermissions >    
            
< configuration ></ configuration >    
        
</ server >  
        
< server >  
            
< id > tomcat2 </ id >  
            
< username > tomcat2 </ username >  
            
< password > tomcat2 </ password >  
        
</ server >  
    
</ servers >  
    
< profiles >  
        
< profile >  
         
< id > default </ id >  
           
< activation >    
        
< activeByDefault > false </ activeByDefault >    
        
< jdk > 1.6.0_24 </ jdk >    
        
< os >    
          
< name > windows 7 </ name >    
          
< family > windows </ family >    
          
< arch > x86 </ arch >    
          
< version > 6.1 </ version >    
        
</ os >    
        
< property >    
          
< name > mavenVersion </ name >    
          
< value > 2.2.1 </ value >    
        
</ property >    
        
< file >    
          
< exists > ${basedir}/file2.properties </ exists >    
          
< missing > ${basedir}/file1.properties </ missing >    
        
</ file >    
      
</ activation >  
            
< repositories >  
                
< repository >  
                    
< id > spring-maven-release </ id >  
                    
< name > Spring Maven Release Repository </ name >  
                    
< url > http://maven.springframework.org/release </ url >  
                
</ repository >  
                
< repository >  
                    
< id > spring-maven-milestone </ id >  
                    
< name > Spring Maven Milestone Repository </ name >  
                    
< url > http://maven.springframework.org/milestone </ url >  
                
</ repository >  
                
< repository >  
                    
< id > JBoss Repo </ id >  
                    
< url > https://repository.jboss.org/nexus/content/repositories/releases </ url >  
                    
< name > JBoss Repo </ name >  
                
</ repository >  
                
< repository >  
                    
< snapshots >  
                        
< enabled > false </ enabled >  
                    
</ snapshots >  
                    
< id > jboss repo </ id >  
                    
< url > https://repository.jboss.org/nexus/content/groups/public/ </ url >  
                
</ repository >  
                
< repository >  
                    
< snapshots >  
                        
< enabled > true </ enabled >  
                    
</ snapshots >  
                    
< id > JBoss Repo shapshots </ id >  
                    
< url >  https://repository.jboss.org/nexus/content/repositories/snapshots </ url >  
                    
< name > JBoss Repo </ name >  
                
</ repository >  
                
< repository >  
      
< id > snapshots.jboss.org </ id >  
      
< name > JBoss Snapshot Repository </ name >  
      
< url > http://snapshots.jboss.org/maven2 </ url >  
      
< releases >  
        
< enabled > false </ enabled >  
      
</ releases >  
      
< snapshots >  
        
< enabled > true </ enabled >  
      
</ snapshots >  
    
</ repository >  
                
< repository >  
                    
< snapshots >  
                        
< enabled > false </ enabled >  
                    
</ snapshots >  
                    
< id > Jolbox BoneCP </ id >  
                    
< url > http://jolbox.com/bonecp/downloads/maven </ url >  
                
</ repository >  
            
</ repositories >  
            
< pluginRepositories />  
        
</ profile >  
    
</ profiles >  


</ settings >  

你可能感兴趣的:(Maven常用Settings.xml)