Creation of Maven Web project Engineering

Source: Internet
Author: User

The Eclipse,mars version of Open has been integrated with Maven.

1. New MAVEN project, tick create a simple project (thus eliminating the process of creating a folder)

2. Select the package method for the war

3. Click Finish, you will find an error, and find the Src/main/webapp directory, the following steps to use

4. Right-click Project-"properties-" Project Facets

5. Uncheck the Dynamic Web Module and click Apply

6. Tick the dynamic Web Module again, select the version, click the hyperlink that appears below

7. In the past we have a Web project, there will be a webcontent directory, where we want to replace the WebContent directory with Src/main/webapp, because the current MAVEN project

8. Click OK and you will find something familiar in the WebApp directory.

9. At this point in the WebApp directory to create a JSP, you will find an error, because there is no servlet container

10. Can be resolved by the dynamic Web Module to the right of a runtimes option, check it

11. Finally right-click Run as your JSP file

12. For the default JDK problem with MAVEN engineering, you can modify the setting file

Creation of Maven Web project Engineering

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.