使用Maven来管理项目-pom.xml详细解读(三)



    4.0.0

     
        org.codehaus.mojo 
        my-parent  
        2.0  
        ../my-parent   
    

    com.yourcompany.app  
    app  
    1.0-SNAPSHOT  
    pom   
    
    
        webFrame     
    

                  
        
            junit    
            junit  
            4.0  
            jar 
            test  
            
            true
                   
                
                    org.apache.maven
                    maven-core
                
                
            
        
        
            org.apache.maven
            maven-embedder
            3.1.0
            
                   
                    *
                    *
                
            
        
    
        
        
            
                org.apache.ant
                ant
                1.8.1
            
        
    
    
       
        varValue
    

    
    
           
            central    
            Central Repository    
            http://repo.maven.apache.org/maven2    
            default    
                
                false    
            
        
        
            
                false
                always
                warn
            
            
                true
                never
                fail
            
            codehausSnapshots
            Codehaus Snapshots
            http://snapshots.maven.codehaus.org/maven2
            default
        
    
            

    
        
            
            central    
            Central Repository    
            http://repo.maven.apache.org/maven2    
            default    
                
                false    
            
                
                never    
            
        
    
    
    
        install      
        ${project.basedir}/target    
        ${project.build.directory}/classes     
        ${project.artifactId}-${project.version}    
        ${project.build.directory}/test-classes    
        ${project.basedir}/src/main/java    
        src/main/scripts    
        ${project.basedir}/src/test/java    
             
            
                ${project.basedir}/src/main/resources    
                META-INF/plexus    
                false
                         
                    configuration.xml
                
                    
                    **/*.properties
                
            
        
        
        
            
                ${project.basedir}/src/test/resources    
            
        
        
            filters/filter1.properties
        
           
                
                maven-antrun-plugin
                1.1
                
                
                    
                        echodir
                        
                            run
                        
                        verify
                        false
                        
                            
                                Build Dir: ${project.build.directory}
                            
                        
                    
                    
                
            
        

          
            
            
            
                    
                    org.apache.maven.plugins
                    maven-jar-plugin
                    2.0
                    false  
                    true 
                       
                        test 
                    
                    
                    
                
                
                    maven-release-plugin
                    2.0
                
            
        
    

        
        ${project.build.directory}/site    
        
        
            
                maven-project-info-reports-plugin
                2.0.1
                
                    
                        sunlink
                        
                            javadoc
                        
                        true
                        
                            
                                http://java.sun.com/j2se/1.5.0/docs/api/
                            
                        
                    
                    
                
            
        
    

    
        
        
            test
            
                false
                1.5          
                       
                    Windows XP
                    Windows
                    x86
                    5.1.2600
                
                
                    sparrow-type
                    African
                
                  
                    ${basedir}/file2.properties
                    ${basedir}/file1.properties
                
            
            
            
            
            
            
            
            
            
            
        
        
        
            release-profile
                 
                    
                    performRelease    
                    true    
                
            

            
                
                    
                        true
                        maven-source-plugin
                        
                            
                                attach-sources
                                
                                    jar
                                
                            
                        
                    
                    
                        true
                        maven-javadoc-plugin
                        
                            
                                attach-javadocs
                                
                                    jar
                                
                            
                        
                    
                    
                        true
                        maven-deploy-plugin
                        
                            true
                        
                    
                
            
        
    

资料参考:http://maven.apache.org/pom.html

你可能感兴趣的:(web-java)