As you may know, IntelliJ IDEA is a great and widely used IDE for java development. Though it’s worth the cost to buy the ultimate edition, not everyone can buy it and here comes the need for the community edition which is as good but with less features.
One big drawback about community edition is that it doesn’t provide tomcat integration and hence we can’t run/debug a web-application.
In this tutorial, with the help of maven’s tomcat plugin, we can run/debug the application.
<build> <finalName>some_name</finalName> <plugins> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> </plugin> </plugins> </build>
By adding the above snippet in pom.xml, we can enable tomcat7 plugin. To debug the application, go to maven projects tool window and run/debug the application as shown below.
The same can be done using gradle-tomcat, gradle-jetty and maven-jetty plugins.