其实是用maven安装tomcat插件
<project>
...
<build>
...
<plugins>
...
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<server>myserver</server>
</configuration>
</plugin>
...
</plugins>
...
</build>
...
</project>
部署
如图所示:
详细可参考: