A new MAVEN Web project is common

Source: Internet
Author: User

To create a new MAVEN Web application project using Eclipse, follow these steps:

1. Create a new MAVEN project in Elipse and click Next:

2. Select the project path (the default is used here) and click Next:

3. Select archetype and select WebApp. Click Next:

4. Fill in GroupID, Artifactid (decided the level of the package), click Finish, that is, the completion of the project initially created.

5. Build the project directory structure as shown:

Index.jsp errors such as:

6. Introduce the appropriate JAR package for remediation:

1) Right-click the project name to enter the path modification interface:

2) Remove the 1.5 version of the JRE and change it to the appropriate version (here is 1.8).

Click on the Add library on the right to select the JRE System Library

Select your 1.8 version and click Finish.

3) in the same way, click Add Library, add Server runtime, run with Tomcat 8. After adding as:

Click OK, wait for the system to recompile automatically, or manually trigger it yourself. After compiling, the error disappears.

7. Add a Jar Package

There are two ways to add a jar package:

1) A dependency configuration that directly opens Pom.xml and manually joins the jar package in its content. Such as:

2) The second is to use the Eclipse tool configuration, open the Pom.xml dependencies item, and click Add. button to add. Such as:

MAVEN Web Engineering to this basic creation is complete, followed by the normal implementation.

A new MAVEN Web project is common

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.