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…

How to resolve maven dependency conflicts

When dealing with lots of maven dependencies we normally ends up with conflicts.┬áThis can be due to different versions of same library in classpath. In this case we have to manually identify the exact maven dependencies with which this library is added. Maven provides an option to list all the libraries added to classpath due Read More…