maven setting文件详解



 

  
   
 E:/java/apache-maven-3.3.9/repository

  
  

 
  


  
    
  


  
   
     
   
	
	 
      optional

      true
	   
      http
	
      proxyuser
	 
      proxypass
	    
      proxy.host.net
	   
      80
	   
      local.net|some.host.com
    
   
  

 
  
    
	  
		  
	
		 frame-releases  
		   
		 admin  
		   
		 admin123  
	     
	  
	  
		  siteServer
	
		  /path/to/private/key
		  
		  optional; leave empty if not used.
						  
		   664
		   
		   775
		
	 

  
  
  
    
	  
	
     mirrorId  
	 
     repositoryId  
	 
     Human Readable Name for this Mirror.  
	  
     http://196.160.1.211:8081/nexus/content/groups/public/  
   
  
  
  
     
    
	 
      jdk-1.4

      
	  
		false
	
        1.5
		
		  
		 
		 Windows XP
		 
		 Windows
		 
		 x86
		 
		 5.1.2600
		
		
		
		
		 
		 mavenVersion
		 
		 2.0.3
		
		
		
		 
		 ${basedir}/file2.properties
		 
		 ${basedir}/file1.properties
		
	
      
 
      
	   
        
          jdk14
          Repository for JDK 1.4 builds
          http://www.myhost.com/maven/jdk14
          default
          always
        
      
    
    

    
    
      env-dev

      
        
          target-env
          dev
        
      

      
        /path/to/tomcat/instance
      
    
   
 
	
	nexusProfile  
	 
        
	   
         
	    
         nexusProfile  
		   
        nexus repository  
		  
        default  
		  
        http://196.160.1.211:8081/nexus/content/groups/public/  
		   
        
		   
			true

      always
	  
	  
	     
      warn
		  
		
		     
        
			true
		  
         
       
     
   
   
       
     centralProfile  
        
      
      central  
      Central Repository  
       
      https://repo.maven.apache.org/maven2  
      default  
        
        true  
        
      
    
     
  
   
  

 
   
nexusProfile  
centralProfile 
 



备注:POM配置
 
     
	 
        frame-releases 
        frame-releases 
        http://localhost:8081/nexus/content/repositories/releases/ 
     
     
        frame-snapshots 
        frame Snapshots Repository 
        http://localhost:8081/nexus/content/repositories/snapshots/ 
     

你可能感兴趣的:(MAVEN)