Search code examples
springtomcatpluginsintellij-idea

Idea Community with Tomcat


I've started working with Spring Framework and InteliJ Idea lately, but when I wanted to launch a Tomcat server for code deployment I saw it is not available in Community Edition. Is it not available to use in Idea? If so, are there any alternatives for this, because I don't like Eclipse at all?


Solution

  • With the community edition, you can run maven from the command line or as a maven run configuration (or mvnDebug for debugging from the command line), and then attach a remote debug session.

    This is a minimal configuration for the maven tomcat plugin, see here for the full documentation:

    <plugin>
        <groupId>org.apache.tomcat.maven</groupId>
        <artifactId>tomcat7-maven-plugin</artifactId>
    </plugin>