maven pom配置信息

 from:http://blog.csdn.net/ithomer/article/details/9332071

什么是pom?
    pom作为项目对象模型。通过xml表示maven项目,使用pom.xml来实现。主要描述了项目:包括配置文件;开发者需要遵循的规则,缺陷管理系统,组织和licenses,项目的url,项目的依赖性,以及其他所有的项目相关因素。

maven POM.xml详解

   
      
      
       
       
       
       
       
       
       
       
   
      
    4.0.0   
       
    asia.banseon   
       
    banseon-maven2   
       
    jar   
       
    1.0-SNAPSHOT   
       
    banseon-maven   
       
    http://www.baidu.com/banseon   
       
    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/banseon No -5 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 ...... ...... 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/ ...... ...... ...... ...... ...... ...... 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 ...... 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

 我的打包pom

    

        
        

            
            
                org.apache.maven.plugins
                
                maven-compiler-plugin
                3.3
                
                    1.7
                    1.7
                    
                    utf-8
                
            

            
                org.apache.maven.plugins
                maven-surefire-plugin
                
                    
                        
                        **/*TestSuit.java   
                    
                    
                        **/CollectionBillTestCase.java
                        **/PaymentBillTestCase.java
                    
                    false  
                    true 
                
            

            
            
                org.scala-tools
                maven-scala-plugin
                2.15.2
                
                
                    
                    
                        
                        
                            compile
                            testCompile
                        
                    
                
                
                
                    
                        -feature
                    
                
            
            
            
                org.apache.maven.plugins
                maven-jar-plugin
                2.4
                
                
                    
                    
                        
                        false

                        
                        
                            
                            true
                            
                            lib/
                            
                            com.bjyada.rps.appmain.RpsApp
                        
                        
                        
                            .
                        
                    
                    
                    
                        **/*.properties
                        **/*.xml
                    
                
            

            
                org.apache.maven.plugins
                maven-resources-plugin
                2.5
                
                    
                        copy-resources
                        package
                        
                            copy-resources
                        
                        
                            UTF-8
                            
                            ${project.build.directory}/etc
                            
                                
                                
                                    
                                    src/main/resources/
                                    
                                    
                                        **/*.properties
                                        **/*.xml
                                    
                                    
                                    true
                                
                            
                        
                    
                
            

            
            
                org.apache.maven.plugins
                maven-dependency-plugin
                
                
                    
                    
                        
                        copy-dependencies
                        
                        package
                        
                        
                            copy-dependencies
                        
                        
                            
                            
                                ${project.build.directory}/etc/lib
                            
                            false
                            false
                            true
                            junit
                        
                    
                
            

        
    

 

你可能感兴趣的:(工作日常)