I have a multi module Maven web application and I would like to know how I could configure my Tomcat server in IntelliJ to hot deploy the web application when I make any changes to the class files in my source folder of my Maven web application.
What I do now is to open a command prompt (on my windows machine), locate to the project folder and do a mvn clean install -Dmaven.test.skip=true and then go to the target folder, copy the war file and paste it to the webapps directory of Tomcat and restart Tomcat.
What I want to achieve is the following:
(1) Configure Tomcat in IntelliJ and add it as a Run configuration to my project - I did this already
(2) Make any changes that I do for the class files, result in the changes to the exploded war of my webapp in the Tomcat webapps directory
I tried googling for this, but no satisfactory answers. There were ways to do this using Eclipse, but I'm astonished to see that using IntelliJ is hard.