<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<!-- 注意此处的url -->
<address>localhost</address>
<port>8080</port>
<path>/platform</path> <!-- 此处的名字是项目发布的工程名-->
<uriEncoding>UTF-8</uriEncoding>
<url>http://localhost:8080/manager/text</url>
<username>admin</username>
<password>password</password>
<!-- <server>tomcat7</server> 此处的名字必须和setting.xml中配置的ID一致 -->
<contextReloadable>true</contextReloadable>
</configuration>
</plugin>