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

Asked

Viewed 2,990 times

0

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

I would like to know how this import process works.

Note: I am using the latest version of Intellij.

  • I think in the Community version there is no way to configure an application server, only in the Ultimate version of the IDE.

  • It’s in the same Ultimate version! I have some years of academic license.

  • https://www.jetbrains.com/help/idea/configuring-and-managing-application-server-integration.html

1 answer

1


Right. So you want two things:

1. Import a Maven project into Intellij:

  1. File > Open > Search for pom.xml > OK > Open as Project

inserir a descrição da imagem aqui

2. Setting up Tomcat:

Add a new Run Configuration:

inserir a descrição da imagem aqui

Add a new Tomcat Server by clicking on + green:

inserir a descrição da imagem aqui

In Application server configure your Tomcat Home:

inserir a descrição da imagem aqui

On the tab Deployment add the Artifact WAR you want to run on the server:

inserir a descrição da imagem aqui

In the same tab you can change the context if necessary:

inserir a descrição da imagem aqui

Save all and run your new configuration.

inserir a descrição da imagem aqui

  • Thank you! It worked!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.