Build a Maven Web Project

Info based on: http://viralpatel.net/blogs/2010/07/generate-dynamic-web-project-maven-eclipse-wtp.html

=================

Create a Simple Maven Project.

-> File

-> New

->Other

-> Maven Project

-> Create a simple project

com.qbytesworld.web

QBW-Web-Parent

1.0 Snap

WAR

<Next>

<Finish>

=================

Execute:

mvn eclipse:eclipse -Dwtpversion=1.5

=================

<F5> refresh

=================

<ALT-Enter>

Click Project Facets

Change Java to 6.0

Click RunTime Tab

Select Apache Tomcat v6.0

=================

Click Java Build Path

Select Libraries Tab

Add Library (Maven Managed Dependencies)

Next (Maven Project Settings)

Uncheck Resolve (Apply)

Check Resolve (Ok)

(Finish)

=================

Open Problems window.

Follow instructions: Here