<tomcat.embed.version>7.0.39</tomcat.embed.version>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-logging-juli</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
<scope>provided</scope>
<version>9.0.41</version>
</dependency>
<build>标签:provided,内置,tomcat,exec,依赖,apache,org,embed From: https://www.cnblogs.com/tofuFan/p/18601184
<finalName>ROOT</finalName>
<plugins>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.3-SNAPSHOT</version>
<executions>
<execution>
<id>tomcat-run</id>
<goals>
<goal>exec-war-only</goal>
</goals>
<phase>package</phase>
<configuration>
<path>/</path>
<finalName>exec.jar</finalName>
<httpPort>8127</httpPort>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>