maven tomcat 插件

在 pom.xml 中添加如下内容

<!-- 配置 tomcat 插件 -->
<build>
    <plugins>
        <plugin>
            <groupId>org.apache.tomcat.maven</groupId>
            <artifactId>tomcat7-maven-plugin</artifactId>
            <configuration>
                <path>/</path><!-- 浏览器地址 不需要工程名了 例如:localhost:8080 -->
                <port>8080</port>
            </configuration>
        </plugin>
    </plugins>
</build>
原文地址:https://www.cnblogs.com/fangwu/p/8709953.html