In fact, I will not create a Maven Javaweb project, I was blind to a bit, unexpectedly succeeded.
One of the conditions here is that your MAVEN is already well-equipped on your computer.
The first step is to File->new->maven Project
Here I have chosen my own common directory
Click Next
Select Maven-archetype-webapp, then click Next
This error is due to the absence of a server jar package.
Here is a server jar package.
Right-click on the project name, build Path->configure build Path
Then select Server Runtime
I've configured the TOMCAT8 server here.
And then there's the following.
Then the project error is gone.
You can run down here.
Here is the code for INDEX.JSP:
< HTML > < Body > < H2 > Hello world! </ H2 > </ Body > </ HTML >
Visit URL http://localhost:8080/Libary/index.jsp
You can see that the access was successful.
Create a Maven Javaweb project with Eclipse