![]() ![]() maven-compiler-plugin:3.5.1:compile (default-compile) tomcat-maven-plugin. skip non existing resourceDirectory D:\examples\tomcat-maven-plugin\src\main\resources ![]() Using 'UTF-8' encoding to copy filtered resources. maven-resources-plugin:2.6:resources (default-resources) tomcat-maven-plugin. > tomcat7-maven-plugin:2.2:deploy (default-cli) > package tomcat-maven-plugin > Building tomcat-maven-plugin 1.0-SNAPSHOT pom.xml 4.0.0 tomcat-maven-plugin war 1.0-SNAPSHOT UTF-8 rvlet rvlet-api 3.1.0 provided maven-war-plugin 3.0.0 false maven-compiler-plugin 3.5.1 1.8 1.8 UTF-8 tomcat7-maven-plugin 2.2 joe joe Ĭreating user and password in tomcat /conf/tomcat-users.xmlĭ:\examples\tomcat-maven-plugin>mvn tomcat7:deploy ![]() We don't have to add web.xml in Servlet 3.1. Public class TestServlet extends HttpServlet void doGet (HttpServletRequest req, We are going to use Servlet 3.1 API: = "testServlet", In this example we are going to use Apache Tomcat Version 9.0.0.M15 and tomcat7-maven-plugin version 2.2.Ĭreating a simple war project Creating a Servlet This example demonstrates how to use tomcat7-maven-plugin to deploy project war from command line without using tomcat application manager page, Currently there exists no Tomcat 8 or 9 versions of tomcat maven plugin, but Tomcat7-maven-plugin works for other versions as well.
0 Comments
Leave a Reply. |