使用IntelliJ IDEA 通过maven插件运行tomcat7

在pom.xml文件中添加如下依赖


    test_setting
    
        
            org.apache.tomcat.maven
            tomcat7-maven-plugin
            
                8080
                /
            
        
    
pom.xml全文件

xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    4.0.0
    com.test
    test_setting
    war
    1.0-SNAPSHOT
    test_setting Maven Webapp
    http://maven.apache.org
    
        
            junit
            junit
            3.8.1
            test
        
    
    
        test_setting
        
            
                org.apache.tomcat.maven
                tomcat7-maven-plugin
                
                    8080
                    /
                
            
        
    


你可能感兴趣的:(javaee)