如果想使用 在 maven中使用 Tomcat7 来启动的话。
可以这样配置
<build>
<plugins>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<port>8080</port>
<path>/rpd-bi</path>
</configuration>
</plugin>
</plugins>
</build>
然后启动命令: mvn tomcat:run
结果发现使用的Tomcat 是 Tomcat6 , 默认自带了 tomc6 了吧。
需要使用 mvn tomcat7:run , 才可以的。
如果想使用tomcat8 , 但是 官网 其实是没有 tomcat8 maven 插件的,
可以参考 https://www.cnblogs.com/jsbk/p/9652690.html
但是 tomcat8 插件 在 阿里云 里面 没有,所以这里就没有测试校验过。