Deploying web application on remote tomcat

I have Apache Tomcat 7.0.50 installed on my local machine and i wanted to create a Maven script that would deploy the web application to the locally installed Tomcat after deployment, these are the steps that i followed, if you want you can download the demo application from here
  • First i changed the <TOMCAT_HOME>/conf/tomcat-users.xml file to allow tomcat user to deploy web applications
  • Next i had to change the <USER_HOME>/.m2/settings.xml file to add server declaration pointing to Tomcat, in my case user who has rights to deploy application is tomcat so i did enter tomcat as user name and password
  • Last step is to change the pom.xml to add tomcat-maven-plugin plugin, this plugin takes URL of the tomcat server and the name of the server as defined in settings.xml (settings.xml has the actual username and password) as argument
  • Now you can run mvn tomcat:deploy or mvn tomcat:redeploy command to publish the web application to remote tomcat server


vanitharaj said...

Remote tomcat wonderful article.

Swords And Souls said...

Thanks for sharing the information. It is very useful for my future. keep sharing. Can you play more games at :
swords and souls | strike force kitty 2 | red ball 4 | ninjago games

Jason Borne said...

Nice post and great content.
Avast Customer Support is here to help you out with the whole procedure to Download Avast Antivirus online, We not only fix your Avast Support related issues but will guide with how to get started with your new Avast product once it gets installed successfully. We at Avast Tech Support provides service to protect your PC from potential online threats and external attacks like viruses, Trojans, malwares, spywares and phishing scams. And Avast Refund. Call on our Avast Phone Number

Gmail Customer service is a third party technical support service for Gmail users when they face any technical issue or error in their Gmail account. Our Gmail Customer Support team solves issues like forgot Gmail account password, Gmail configuration or Sync issues, recover deleted emails and many more. Toll Free number (800) 986-9271

How you install or reinstall Office 365 or Office 2016 depends on whether your Office product is part of an Office for home or Office for business plan. If you're not sure what you have, see what office com setup products are included in each plan and then follow the steps for your product. The steps below also apply if you're installing a single, stand-alone Office application such as Access 2016 or Visio 2016. Need Help with office setup Enter Product Key? Call 1-800-000-0000 Toll Free
Norton Tech Support is a third party service provider and not in any way associated with Norton or any of its partner companies. We offer support for Norton products and sell subscription based additional warranty on computer and other peripheral devices. Call our Toll Free number 1 855 966 3855
Other Services
Norton Toll Free , Office-Setup ,