Importing a Maven project with IntelliJ IDEA 10.5

In the previous recipe, Creating a Maven project with IntelliJ IDEA 10.5, we created a project compatible with IntelliJ IDEA and Apache Maven. We also created custom run configurations to execute lifecycle or other Maven plugin goals from within the IDE itself.

However, most of the time your Apache Maven project would exist on a shared filesystem or version control/code repository. This would be shared by your entire team and it is a best practice not to share IDE files on the code repository.

In such situations, you need to import your Apache Maven project into the IntelliJ IDEA IDE. IntelliJ IDEA is fully compatible with the Apache Maven Project Object Model and thus allows you to natively open ...

Get Apache Maven 3 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.