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  阅读(223)  评论(0)    收藏  举报
点击右上角即可分享
微信分享提示