I am running Intellij Ultimate with Tomcat and deploy a war. Everything deploys fine to the webapp directory of tomcat.
When I change a file like an xhtml file, i
I have found a better way.
In Eclipse we have automatically build, compile + reload static files. Actually static files are served directly from src/main/webapp.
In IntelliJ instead of serving directly from src/main/webapp, there is a folder created in target, in which you will have a copy of your src/main/webapp and also other context related .. web-inf/classes /lib.
If You put instead of the target the output of exploded artifact to src/main/webapp, it will not overwrite you source files, and it will serve directly, you won't have to hit - update resources / update resources and classes
So what you need to do in IntelliJ is
After this, if you have jobs that change static files from outside IntelliJ, you will see changes immediately without going to IntelliJ and Update Resources, and for the classes you have that macro that saves, and compile(Note: You could also just hit Compile/Recompile : cmd + shift + F9 / cmd + F9 - if you have multiple opened editors will see that your dirty * editors will be non dirty, and changes(classes) will be reloaded)