First step is to set up the Maven, and Tomcat config files:
1. Create a new user in Tomcat's tomcat-users.xml file ($CATALINA_HOME/conf).
2. Add a new server entry, in Maven's setting.xml file ($M2_HOME/conf).
tomcatserver
admin
tomcat
3. Setup the plugin, in the pom.xml
...
...
org.codehaus.mojo
tomcat-maven-plugin
tomcatserver
...
...
Goals:
tomcat:deploy
tomcat:redeploy
tomcat:undeploy
tomcat:start
tomcat:stop


No comments:
Post a Comment