Create a MAVEN project under Eclipse

Source: Internet
Author: User

1. Open Eclipse, right-click new--"Other, if you find Maven project

2. Select Maven Project to display the window where the MAVEN project was created

3. Search for "Web" in the Search box, select, Next

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

5, after the new MAVEN project, the initial directory is such (perhaps because some settings, the initial directory is different) can be found in the initial directory, the directory does not have "Src/main/java" and "Srr/main/test" two source folders:

6. Click on the project name and right click to select "Build Path"-"Configrue Build Path" appears

7. Click "JRE System Library [javase-1-7]" (not the same version as Eclipse may appear), then click "Edit"

8. Select "Workspace default JRE (jdk1.7.0_79)" and select Finish

9, we can now be familiar with the directory structure

10. How to convert MAVEN project to Web project (1) Click Project, right click-"Select properties-" to select Project Facets under Maven

(2) If the previous Dynamic Web module has a tick, first remove the tick, apply-"OK

(3) Repeat step (1) You can see the Dynamic Web module does not tick, tick, after the appearance of further configuration available

(4) Click further configuration available, appear modify Web moduls settings, populate content directory with Src/main/webapp, and generate web . XML deployment Descriptor tick-"ok-" apply-"OK

(5) The final result

Create a MAVEN project under Eclipse

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.