Maven Web ApplicationCreate a Maven project in Eclipse. During project creation, choose the Create a simple project option as shown in the screenshot below: And on the next screen, fill out Group Id, Artifact Id, and change Packaging to war. You can leave all other fields as is. After the project is created, add the following to pom.xml (inside <project> and after <packaging>):
These changes specify that the project requires JDK 1.7 and add the following dependencies:
Right click on the project and select Maven -> Update Project... The latest version of Eclipse (i.e. the Mars release) will show an error "web.xml is missing". Don't worry about it as we'll add a web.xml in the next step. |