带2个插件的pom

/xml配置文件/maven的配置/带2个插件的pom.xml
测试发现在父项目如下配置jdk1.7插件,子项目子模块都不需要再配置:
  
     *****
    
            
            
                org.apache.maven.plugins
                maven-compiler-plugin
                3.2
                
                    1.7
                    1.7
                    UTF-8
                    true
                

            

        

    

  




    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    
    
    4.0.0
    cn.itcast.maven
    m1
    0.0.1-SNAPSHOT
    war
    
    
    
    
    
        
            junit
            junit
            4.9
            test
        



        
            javax.servlet.jsp
            jsp-api
            2.0
            provided
        

        
            javax.servlet
            servlet-api
            2.5
            provided
        

    

    
    
        
        
                
            
                org.apache.maven.plugins
                maven-compiler-plugin
                
                    1.7
                    1.7
                    UTF-8
                

            

        

            
        
            
                        
                    org.apache.tomcat.maven
                    tomcat7-maven-plugin
                    2.1
                    
                        9090
                        
                        
                        /mgr
                        UTF-8
                        tomcat7
                    

                

            

        
            
    

你可能感兴趣的:(java相关的xml配置)