1.直接发布到tomcat
<build>
<plugins><plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<version>1.1</version>
<configuration>
<url>http://172.168.3.126:8088/manager/html</url>
<server>tomcat</server>
<username>admin</username>
<password></password>
</configuration>
</plugin>
</plugins>
</build>