Configuring Maven plugins in Eclipse
Right-click menu select Create Maven Project
Tick the first item, select Good workspace, then enter the project information in the next step
Remember, packaging to choose the war. Change project Properties after new completion
Then add the following file (clip) under src/main/webapp/under the project directory structure
Start the project and you can access it. The template for the Web. xml file is as follows:
<?XML version= "1.0" encoding= "UTF-8"?><Web-appXmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"xmlns= "Http://java.sun.com/xml/ns/javaee"Xmlns:web= "Http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"xsi:schemalocation= "Http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"version= "2.5"> <Display-name>Mastiff</Display-name></Web-app>
Maven creating a Java Web project