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