In the previous recipe, Creating a Maven project with NetBeans 7, we created a project compatible with NetBeans 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 NetBeans IDE. NetBeans is fully compatible with the Apache Maven Project Object Model and thus allows you to natively open any Apache Maven project.