问题
使用tomcat7-maven-plugin插件部署到tomcat服务器时,当服务器上已经有相同名字的项目就会导致
FAIL - Application already exists at path
解决方法
pom.xml文件中配置tomcat7-maven-plugin插件时加入参数update
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<url>http://localhost:8080/manager/text</url>
<path>/web_project_template</path>
<uriEncoding>UTF-8</uriEncoding>
<finalName>web_project_template</finalName>
<server>tomcat</server>
<update>true</update>
</configuration>
</plugin>