This page explains how to import a project into IntelliJ & how to configure it to run on a specific environment.
- Click on 'import project'
- Choose the source directory
- Choose the project type
That's your best option if your project has a pom.xml
Don't forget to click:
- import Maven project automatically (so your project will always be sync)
- Create module groups for multi-maven projects