2. Create an application

2.4. Install maven

The structure of your project : 

result eclipse

Do a install maven and the war must be in target folder.