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

<plugin>
 <groupId>org.apache.tomcat.maven</groupId>
 <artifactId>tomcat7-maven-plugin</artifactId>
 <version>2.2</version>
</plugin>

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

https://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/

Maven使用tomcat8-maven-plugin插件的详细教程

在mvnrepository仓库中找到了一个

Maven使用tomcat8-maven-plugin插件的详细教程

把上面的依赖加入到POM.XML中要么就是提示找不到该依赖,要么就是下载不下来.找了半天找到了一个解决方法,就是使用Maven中的<pluginRepositories> ,<pluginRepositories>是用来配置插件地址的,因为maven的所有功能都是使用插件来实现功能的,因此需要从特定的地址下载插件包。

在POM.XML中加入以下内容

 <pluginRepositories>  
	 <pluginRepository>  
		<id>alfresco-public</id>  
		<url>https://artifacts.alfresco.com/nexus/content/groups/public</url>  
	 </pluginRepository>  
	 <pluginRepository>  
		<id>alfresco-public-snapshots</id>  
		<url>https://artifacts.alfresco.com/nexus/content/groups/public-snapshots</url>  
		<snapshots>  
		 <enabled>true</enabled>  
		 <updatePolicy>daily</updatePolicy>  
		</snapshots>  
	 </pluginRepository>  
	 <pluginRepository>  
		<id>beardedgeeks-releases</id>  
		<url>http://beardedgeeks.googlecode.com/svn/repository/releases</url>  
	 </pluginRepository>  
 </pluginRepositories>

加入tomcat8-maven-plugin依赖

 <plugin>
     <groupId>org.apache.tomcat.maven</groupId>
     <artifactId>tomcat8-maven-plugin</artifactId>
     <version>3.0-r1655215</version>
    </plugin>

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

然后在网上还找到了几个有这个插件的仓库:

http://mvnrepository.com/artifact/org.apache.tomcat.maven/tomcat8-maven-plugin/3.0-r1655215

https://svn.apache.org/repos/asf/tomcat/maven-plugin/branches/tc8.x/

https://github.com/apache/tomcat-maven-plugin

标签:
Maven使用tomcat8-maven-plugin插件,tomcat8-maven-plugin插件

免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
白云城资源网 Copyright www.dyhadc.com

P70系列延期,华为新旗舰将在下月发布

3月20日消息,近期博主@数码闲聊站 透露,原定三月份发布的华为新旗舰P70系列延期发布,预计4月份上市。

而博主@定焦数码 爆料,华为的P70系列在定位上已经超过了Mate60,成为了重要的旗舰系列之一。它肩负着重返影像领域顶尖的使命。那么这次P70会带来哪些令人惊艳的创新呢?

根据目前爆料的消息来看,华为P70系列将推出三个版本,其中P70和P70 Pro采用了三角形的摄像头模组设计,而P70 Art则采用了与上一代P60 Art相似的不规则形状设计。这样的外观是否好看见仁见智,但辨识度绝对拉满。