Maven-POM文件配置说明

在build中配置resources.来防止资源导出失败的问题


    
        
            src/main/resources
            
                **/*.properties
                **/*.xml
            
            true
        
        
            src/main/java
            
                **/*.properties
                **/*.xml
            
            true
        
    

localRepository


 usr/local/maven

interactiveMode


 true

usePluginRegistry


 false

offline


 false

pluginGroups


 
  
  org.codehaus.mojo
 

proxies


 
  
  
   
   myproxy
   
   true
   
   http
   
   proxy.somewhere.com
   
   8080
   
   proxyuser
   
   somepassword
   
   *.google.com|ibiblio.org
  
 

servers


 
  
  
   
   server001
   
   my_login
   
   my_password
   
   ${usr.home}/.ssh/id_dsa
   
   some_passphrase
   
   664
   
   775
  
 

mirrors


 
  
  
   
   planetmirror.com
   
   PlanetMirror Australia
   
   http://downloads.planetmirror.com/pub/maven2
   
   central
  
 

profiles


 
  
  
   
   test

Activation


   
    
    false
    
    1.5
    
    
     
     Windows XP
     
     Windows
     
     x86
     
     5.1.2600
    
    
    
     
     mavenVersion
     
     2.0.3
    
    
    
     
     ${basedir}/file2.properties
     
     ${basedir}/file1.properties
    
   

Repositories


   
    
    
     
     codehausSnapshots
     
     Codehaus Snapshots
     
     
      
      false
      
      always
      
      warn
     
     
     
      
     
     
     http://snapshots.maven.codehaus.org/maven2
     
     default
    
   
   
   
    
                     
           
      
     
     
      
     
     
          
        
  
 

activeProfiles


   
    env-test
   

POM文件总体配置说明

 

     
     
         
        xxx

        
        xxx 

         
        xxx

         
        xxx 
     

     
     4.0.0  

     
    xxx 

     
    xxx 

     
     jar  

     
     1.0-SNAPSHOT  

     
     xxx-maven  

     
     http://maven.apache.org  

     
     A maven project to study maven.  

     
     
         
         
     

     
     
         
         jira  

         
         http://jira.baidu.com/banseon  
     

     
     
         
         

         
         

         
         
             
             
                 
                 

                 
                 

                 
                 

                 
                 

                 
                 

                 
                
Demo [email protected] [email protected] [email protected] http:/hi.baidu.com/banseon/demo/dev/ HELLO WORLD banseon [email protected] Project Manager Architect demo http://hi.baidu.com/xxx No -5 Project Manager Architect No Apache 2 http://www.baidu.com/banseon/LICENSE-2.0.txt repo A business-friendly OSS license scm:svn:http://svn.baidu.com/banseon/maven/banseon/banseon-maven2-trunk(dao-trunk) scm:svn:http://svn.baidu.com/banseon/maven/banseon/dao-trunk http://svn.baidu.com/banseon demo http://www.baidu.com/banseon true/false true/false true/false true/false true/false true/false true/false jdk版本,如: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/ true/false true/false true/false true/false true/false true/false banseon-repository-proxy banseon-repository-proxy http://192.168.1.169:9999/repository/ default org.apache.maven maven-artifact 3.8.1 jar test spring-core org.springframework true true/false true/false banseon-maven2 banseon maven2 file://${basedir}/target/deploy banseon-maven2 Banseon-maven2 Snapshot Repository scp://svn.baidu.com/banseon:/usr/local/maven-snapshot banseon-site business api website scp://svn.baidu.com/banseon:/var/www/localhost/banseon-web value

资料来自黑马程序员Maven视频教程下方评论

你可能感兴趣的:(maven,java,servlet,mybatis,spring)