Maven常用功能

7.1、资源排除


   
   
     src/main/resources
     true
     
       src/main/resources/dev/*.*
       src/main/resources/local/*.*
     
   
 
  
  
    src/main/resources
    false
    
      *.xml
      *.properties
    
  
 

7.2、环境区分

 
 
    
    
     dev
     
       true
     
     
     
       
         org.apache.maven.plugins
         maven-antrun-plugin
         1.1
         
           
             test
             
               run
             
             
               
                 Using dev
                 
               
             
           
         
       
     
   
   

 
 
   local
   
     
       
         org.apache.maven.plugins
         maven-antrun-plugin
         1.1
         
           
             test
             
               run
             
             
             
               Using local
               
             
           
         
       
     
     
     
     
 

7.3.配置jdk版本—maven全局配置

    
   JDK-1.8
   
     true
     1.8
   
   
     1.8
     1.8
     1.8
   
 

你可能感兴趣的:(Maven常用功能)