Maven Tomcat webapp

I use the eclipse webtools plugin, and run my Tomcat from it. It has a republish method that publishes the jars as well (if not, you just clean the directory and republish).

In the pom file, you should have the following lines so that the webtools will be supported automatically

<build>
    ...
    <plugins>
        <plugin>
                <artifactId>maven-eclipse-plugin</artifactId>
                <configuration>
                        <wtpversion>1.5</wtpversion>
                        ...
                </configuration>
        </plugin>
        ...
    </plugins>
    ...
</build>
原文地址:https://www.cnblogs.com/JavaTechLover/p/2709247.html