after using tomcat 7 maven plugin i want to upgrade my app to tomcat 8 to support java 8 but
tomcat 8 dont have maven plugin and after serach in google i found Cargo maven plugin that support tomcat 8 and other app server .it is very easy to use .
cargo is
Cargo is a thin wrapper that allows you to manipulate various type of application containers (Java EE and others) in a standard way.
tomcat 7 maven plugin
<plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.0</version> <configuration> <warSourceDirectory>${basedir}/target/smartHome</warSourceDirectory> </configuration> </plugin> cargo maven plugin
<plugin> <artifactId>cargo-maven2-plugin</artifactId> <version>1.4.16</version> <configuration> <container> <containerId>tomcat8x</containerId> </container> <deployables> <deployable> <groupId>org.roshan</groupId> <artifactId>smartHome</artifactId> <type>war</type> <properties> <context>${project.build.finalName}</context> </properties> </deployable> </deployables> <deployer> <type>installed</type> </deployer> </configuration> </plugin>