在tomcat插件配置中加一行
<ignorePackaging>true</ignorePackaging>
告诉tomcat忽略是否有war包
<plugins> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <configuration> <ignorePackaging>true</ignorePackaging> <port>8080</port> <path>/</path> </configuration> </plugin> </plugins>
原文地址:https://www.cnblogs.com/helenwq/p/11703487.html
时间: 2024-11-05 23:17:23