diff --git a/Tomcat-installation/feature/deploy_warfile_on_tomcat_server.md b/Tomcat-installation/feature/deploy_warfile_on_tomcat_server.md new file mode 100644 index 00000000..1ff69f21 --- /dev/null +++ b/Tomcat-installation/feature/deploy_warfile_on_tomcat_server.md @@ -0,0 +1,53 @@ +## How to deploy on tomcat server using maven +##### Prerequisite + 1. Maven Installation [Get help here] + 2. Tomcat Installation [Get help here] + +### Procedure + +## 1. Update pom.xml code to add maven plugin to copy artifacts onto tomcat + +``` sh + cd jp #the folder Name of your javaproject + cd mwa #Navigate to the directory of your maven web application + vi pom.xml #search for where the plugins tag end "" and paste the below before the ending tag +##cchange the localhost to the public ip address of the tomcat server +``` + + ```sh + + + org.apache.tomcat.maven + tomcat7-maven-plugin + 2.2 + + http://localhost:8177/manager/text + TomcatServer + /second-demo-webapp + + + +``` + +## 2. create settings.xml for credentials + ```sh + + + + + + TomcatServer + admin + change-to-configure-user-manager-password + + + + + ``` + +## 3. Build and the project on tomcat + ```sh + mvn tomcat7:deploy + ``` + +## 4. Check the tomcat manager you will see the newly deployed application there