maven 插件:Tomcat7
生活随笔
收集整理的這篇文章主要介紹了
maven 插件:Tomcat7
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
配置 Tocmat 用戶
> vim $TOMCAT_PATH%/conf/tomcat-users.xml
<tomcat-users><role rolename="manager-gui"/><role rolename="manager-script"/><user username="tomcat" password="linuxmint" roles="manager-gui,manager-script"/></tomcat-users>
配置 maven
<server><id>tomcat7</id><username>tomcat</username><password>linuxmint</password></server>
pom.xml 基本配置
<plugins><plugin><groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.1</version><configuration><server>tomcat7</server></configuration></plugin> </plugins>
也可以直接把tomcat 信息配置在 pom.xml 內.
build > plugins<plugins><plugin><groupId>org.apache.tomcat.maven</groupId><artifactId>tomcat7-maven-plugin</artifactId><version>2.1</version><configuration><url>http://localhost:8080/manager/text</url><path>/${project.build.finalName}</path><server>tomcat7</server><username>tomcat</username> <password>linuxmint</password></configuration></plugin></plugins>
部署的 URL
tomcat6 http://localhost:8080/manager/html
tomcat7 http://localhost:8080/manager/text 部署
> mvn tomcat7:deploy
重新部署
> mvn tomcat7:redeploy
轉載于:https://www.cnblogs.com/alexck/p/3421922.html
總結
以上是生活随笔為你收集整理的maven 插件:Tomcat7的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 婧氏卫生巾多少钱一包?效果怎么样
- 下一篇: datagridview 点击列标题排序