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>
posted @ 2012-09-30 15:54  daveztong  阅读(220)  评论(0编辑  收藏  举报