I use Intellij IDEA 11.1.2 Ultimate Edition. I run Tomcat 6 from Intellij IDEA. Beside my .war application I have another folder that has static HTML files. When I run tomcat ma
If you want to debug you have no need to run Tomcat from IDEA. You can use remote debugging feature. Just set up Tomcat to accept debug(listen to particular port). And create debug configuration from IDEA to attach to this port.
Tomcat Run configuration has an option to deploy other applications from the server (that already present in the original webapps folder), like your static files:
Another option would be to create a second module for the static content with another artifact and deploy both artifacts from IntelliJ IDEA.
I think that CrazyCoder's answer is a little bit better. But here is my solution.
File -> Project Structure...
+
Web resource directory path
is your static contentRelative path in deployment directory
is where you want to find it in your application war