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: Add maven dependency for tomcat embedded plugin to web project <?xml version=”1.0″?> <project xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd” xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”> … <dependencies> … </dependencies> <build> <finalName>expensemanager-web</finalName> <plugins> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> <configuration> Read More…