Maven使用tomcat8-maven-plugin插件
来源:互联网 发布:微积分 清华 知乎 编辑:程序博客网 时间:2024/06/10 19:27
在网上搜索一堆文章没找到解决方法,只找到了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/
在mvnrepository仓库中找到了一个
把上面的依赖加入到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
阅读全文
0 0
- Maven使用tomcat8-maven-plugin插件
- Maven使用tomcat8-maven-plugin插件
- Maven使用tomcat8-maven-plugin插件
- Tomcat-maven-plugin插件使用
- maven-anturn-plugin插件使用
- maven插件maven-dependency-plugin的使用
- maven插件maven-dependency-plugin的使用
- cobertura-maven-plugin插件 maven
- maven插件 buildnumber-maven-plugin
- Maven插件:maven-javadoc-plugin
- 使用jetty-maven-plugin插件进行测试
- maven-dependency-plugin插件的使用
- maven-dependency-plugin插件的使用
- 使用jetty-maven-plugin插件进行测试
- maven-dependency-plugin插件的使用
- eclipse maven plugin 插件
- maven-surefire-plugin插件
- maven-compiler-plugin插件
- Comparable与Comparator的区别
- 安卓入门【linearlayout线性布局,Tablelayput表格布局】
- Jquery选择器全总结
- 搭建iDempiere4.1开发环境
- SecureCRT常用命令
- Maven使用tomcat8-maven-plugin插件
- c++: 两个变量的求和输出
- 某银行降低贷款拖欠率的逻辑回归建模
- 大数据推荐算法之隐语义模型(lfm)进行Top-N推荐
- 每日一刷——一个类不能被继承 &类只能在堆上创建对象&类只能在栈上创建对象。
- 多线程之倒计时器CountDownLatch及原理
- AOP与OOP的区别
- 异常处理与调试
- 研究生报告模板LaTex