How to import and configure a Maven project with Tomcat server in Intellij?

0

I have a simple project and would like to run this project in the Intellij IDE, but I believe that unlike Eclipse, the IDE requires other parallel settings to import.

I would like to know how this import process works.

Note: I'm using the latest version of Intellij.

    
asked by anonymous 09.11.2018 / 14:13

1 answer

1

Right. So you want two things:

1. Import a Maven project into IntelliJ:

  • File > Open > Browse the pom.xml > OK > Open as Project
  • 2.ConfiguringTomcat:

    AddanewRunconfiguration:

    AddanewTomcatServerbyclickingthe+green:

    InApplicationserverconfiguretheHomeofyourTomcat:

    OntheDeploymenttabaddtheWARartifactyouwanttorunontheserver:

    Inthesametabyoucanchangethecontextifnecessary:

    Saveeverythingandrunyournewconfiguration.

        
    09.11.2018 / 16:37