Create MAVEN projects in Eclipse and publish (including Tomcat configuration)

Source: Internet
Author: User
Tags tomcat tomcat server

1. Create the MAVEN project as follows:

2. Select Create in default space

3. Select the default fast-build version

4. Set the ID, and manually specify the package name, do not use the auto-generated

5. After generating the following Java project, add the following two source folders and two normal folders

6. Configure the eclipse Tomcat as pictured and select the local tomcat location.

7. In the Server window, click New to have a server and select the Tomcat version

8. Copy the generated servers Web. XML into the Web-inf

9. Modify the Web. XML in Web-inf as follows:

10. Then configure the project's Pom file, modify the jar package for the war package

11. Modify the Tomcat server file


12. Execute on the project, Runas->maven install, then set the path of the project in servers Server.xml


13. The project name can be accessed directly after launch



Related Article

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.