Tomcat 7, tomcat

Source: Internet
Author: User

Tomcat 7, tomcat

Tomcat7 deployment, there are many ways to release a project

1. incremental release: manually upload the modified files to tomcat ,*. class *. xml and so on. This kind of disadvantage is very big. You need to disconnect tomcat and remember the files you have modified. This is very complicated. I have experienced it before and it is worth mentioning.

2. the hot deployment of the tomcat console GUI is to manually upload the war package to tomcat each time, so you do not need to disconnect it. However, if you are using distributed development, there are 30 war files, do you also manually upload each time?

3. tomcat script-based hot deployment, which is simple and can be directly deployed to a remote server after maven compilation.

Modify the file in this folder.

Add these three lines to deploy the gui and scripts.

Add tomcat7 plug-in pom

Deploy to ROOT

 

For initial deployment, run the "tomcat7: deploy" command. If the ROOT does not exist, use this command. If the "tomcat7: redeploy" command has been deployed and ROOT exists, use this command to overwrite it.

Compile and upload

Run

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.