Eclipse creates a Maven project

Source: Internet
Author: User

Create a MAVEN Web project with Eclipse



1. Install the JDK and configure the environment variables (this Baidu a lot)

2. Download maven, unzip and configure environment variables

cmd Command Window mvn-v appears to indicate success

3.eclipse configuration Maven:windows--preferences--maven--installations, click the Add button

Windows--preferences--maven--user settings in the configuration corresponding to the Settings.xml

4. Start creating a Web project

The directory structure of the finished project is as follows

Right-click the project and modify the corresponding JRE version (eclipse default is 1.5)

Right-click the project Properties--project Facets see the configuration as

At this point, cancel the dynamic Web Module option and select the Java option as 1.7 of the previous step configuration and click Apply to confirm. At this point, the Dynamic Web module check box is checked again, and the Furtherl link appears below

Click the link to enter the configuration, in order to keep the directory consistent, modify content directory for Src/main/webapp

Click OK, at this point, the project directory has already appeared the structure of the Web project

First blog, please give us a lot of advice

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: 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.