There are three ways to use Maven with your IDE:
Support for IDE integration is provided by the MevenIDE project. Currently, they support project editing in NetBeans 4.0+ and Eclipse.
Using Maven as an external tool is usually quite simple, and allows you to run Maven goals from within your IDE. Specific instructions for setting up your IDE are listed here:
Maven also provides plugins for several IDEs that will generate project files from your Maven project descriptor. Please refer to the plugin documentation for your IDE: