Maven Web Project – Deploy using embedded tomcat server

Maven provides support for running web applications in embedded tomcat server.

Use the following steps to configure local tomcat server and run it using maven command:

  1. Add maven dependency for tomcat embedded plugin to web project
    <?xml version="1.0"?>
      xmlns="" xmlns:xsi="">
  2. Use following maven command to run the application in embedded tomcat server
    mvn tomcat7:run

Leave a Reply

Your email address will not be published. Required fields are marked *