Eclipse + Maven: Create a webapp project, mavenwebapp

Source: Internet
Author: User

Eclipse + Maven: Create a webapp project, mavenwebapp

Create a webapp project using Eclipse + Maven <1>

1. Enable eclipse, right-click new -- other, for example, find maven project

2. Select maven project. The maven project Creation window is displayed. Select Create a simple project.

3. Enter the basic information of the maven project, as shown in:

4. Complete the maven Project Creation and generate the corresponding maven project results, as shown in the following figure. Some structures are not required by the project. We need to remove them:

5. Select a project, right-click the project, and choose Properties From the shortcut menu, as shown in:

6. Select java 1.7 and remove the other two items, for example:

7. Click OK and return to the project structure again. The project structure is clear and conforms to the maven project we want to create.

8. At this time, the results under the webapp are not displayed, because at this time, we have not configured this project as a web project, and re-enter the Properties configuration, as shown in:

9. Click Further configuration available..., as shown below:

10. Configure src/main/webapp and check the web. xml generation option as follows:

11. After confirmation, go back to the maven menu and remove the Dynamic Web Module check box. Click OK, as shown in the following figure. The webapp directory structure is displayed:

12. You also need to configure src/main/webapp as the root directory of the "/" project, as shown below:

13. After completing the preceding configuration, complete the maven webapp project structure, as shown in:

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.