Tomcat in Intellij Idea Community Edition
Intellij Community does not offer Java application server integration. Your alternatives are
- buying Intellij licence,
- switching to Eclipse 😉
- installing IDEA Jetty Runner plugin https://plugins.jetbrains.com/plugin/7505
- running the application server from Maven, Gradle, whatever, as outlined in the other answers.
I personally installed the Jetty Runner plugin (Jetty is fine for me, I do not need Tomcat) and I am satisfied with this solution. I had to deal with IntelliJ idea – Jetty, report an exception, though.
IDEA Jetty Runner plugin :https://plugins.jetbrains.com/plugin/7505