Running Maven project within Eclipse on Tomcat

Running Maven project within Eclipse on Tomcat

Here is the simplest way of running a web application that uses Maven as the build tool, from within Eclipse.

This tutorial is based on the following software’s :

1. Java 1.6
2. Eclipse Juno (4.2) JEE Version
3. Maven 2 Eclipse Plugin ( Read this blog to know how to configure M2E Plugin )
4. Maven 3.0.3
5. Simple Hello World web application that uses Struts 2. You can download a simple Hello World app build using Maven from GitHub: Struts Hello World App

Assuming that Eclipse is pointed to a new work space and you have installed and configured M2E plugin correctly, here is what you need to do to import the Maven project and then run it on Tomcat:

Read More