tomcat8-maven-plugin插件在Maven中如何使用

  介绍

本篇文章给大家分享的是有关tomcat8-maven-plugin插件在Maven中如何使用,小编觉得挺实用的,因此分享给大家学习,希望大家阅读完这篇文章后可以有所收获,话不多说,跟着小编一起来看看吧。

在网上搜索一堆文章没找到解决方法,只找到了tomcat7-maven-plugin的插件,如下:

& lt; plugin>   & lt; groupId> org.apache.tomcat.maven   & lt; artifactId> tomcat7-maven-plugin   & lt; version> 2.2 & lt;/version>   & lt;/plugin>

并没有找到tomcat8-maven-plugin的插件,在Maven的中央仓库中根本就没有这个插件:

 tomcat8-maven-plugin插件在Maven中如何使用“> <br/> </p> <p>在mvnrepository仓库中找到了一个</p> <p> <img src= & lt; pluginRepositories>   & lt; pluginRepository>   & lt; id> alfresco-public   & lt; url> https://artifacts.alfresco.com/nexus/content/groups/public</url>   & lt;/pluginRepository>   & lt; pluginRepository>   & lt; id> alfresco-public-snapshots   & lt; url> https://artifacts.alfresco.com/nexus/content/groups/public-snapshots</url>   & lt; snapshots>   & lt; enabled> true   & lt; updatePolicy> daily   & lt;/snapshots>   & lt;/pluginRepository>   & lt; pluginRepository>   & lt; id> beardedgeeks-releases   & lt; url> http://beardedgeeks.googlecode.com/svn/repository/releases</url>   & lt;/pluginRepository>   & lt;/pluginRepositories>

加入tomcat8-maven-plugin依赖

 & lt; plugin>
  & lt; groupId> org.apache.tomcat.maven
  & lt; artifactId> tomcat8-maven-plugin
  & lt; version> 3.0 -r1655215
  & lt;/plugin> 

然后就能使用tomcat8-maven-plugin插件了。

以上就是tomcat8-maven-plugin插件在Maven中如何使用,小编相信有部分知识点可能是我们日常工作会见到或用到的。希望你能通过这篇文章学到更多知识。更多详情敬请关注行业资讯频道。

tomcat8-maven-plugin插件在Maven中如何使用