您的位置:首页 > 运维架构 > Tomcat

deploy spring war to tomcat.

2012-04-19 16:09 218 查看
omcat7 deployment can be automated from Maven using tomcat7-maven-plugin, http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/tomcat7-maven-plugin/plugin-info.html.
To enable Tomcat deployment, do the following,

Configure Tomcat7
Add plugin to pom.xml
Invoke tomcat7:deploy
Troubleshooting

Configure Tomcat7

Edit conf/tomcat-users.xml, and append the following,

Add plugin to pom.xml

Invoke tomcat7:deploy

Add a Run As profile for your Maven build with the following,

Troubleshooting

403 forbidden error: make sure you use tomcat7 not tomcat (some default value such as <url> has changed in Tomcat 7)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: