Eclipse creates a Maven project

Source: Internet
Author: User

1. Open eclipse,file--"new--" Maven project, create MAVEN projects, tick the Create a simple project, as shown in:

2. Enter the basic information for the MAVEN project, as shown in:

3. When the MAVEN project is created, build the MAVEN project as shown in:

4. Select the project, go to the Properties page, choose Project Facets under the Maven menu, and remove the other two, and choose Java version 1.7 as shown in:

5. Click Apply, then click on the Ok,maven project structure as shown in:

6. The current webapp is empty, we configure the project as a Web project, once again into the properties configuration, tick the dynamic Web Module, click further configuration available ..., as shown in:

7. Configure the Src/main/webapp, and tick the option to generate Web. XML, as shown in:

8. On the Properties configuration page, click Apply, then remove the dynamic WEB module tick, click the OK,WEBAPP directory structure to complete, as shown in:

9. At this point you also need to configure, Src/main/webapp "/" Project root directory, add--"folder--" Src/main/webapp, as shown:

Eclipse creates a Maven project

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.