2019独角兽企业重金招聘Python工程师标准>>>
pom配置
-
org.apache.tomcat.maven -
tomcat7-maven-plugin -
2.1 -
-
http://192.0.0.203:8080/manager/text -
server203 -
/energy
setting.xml
-
unknown -
tomcat -
tomcat
tomcat配置有管理权限的用户:conf\tomcat-users.xml
- '1.0' encoding='utf-8'?>
-
"manager" /> -
"marshal" password="password" roles="manager"/>
相关命令
运行打包部署:
- mvn tomcat:deploy
撤销部署:
- mvn tomcat:undeploy
启动web应用:
- mvn tomcat:start
停止web应用:
- mvn tomcat:stop
重新部署:
- mvn tomcat:redeploy
部署展开的文件:
- mvn war:exploded tomcat:exploded
自动部署脚本
- echo [Step 1] tomcat7:undeploy
- call mvn tomcat7:undeploy
- if errorlevel 1 goto error
- echo [Step 1] tomcat7:undeploy
- call mvn tomcat7:deploy -Dmaven.test.skip=true
- if errorlevel 1 goto error
- goto end
- :error
- echo Error Happen!!
- :end
本配置仅适用tomcat7的maven插件,tomcat6请修改配置
最主要的是http://192.0.0.203:8080/manager/text ,参考官方文档
http://lookqlp.iteye.com/blog/1901550