Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Installing Maven Support in Netbeans

This tutorial will show you how to install support for the Maven build tool.

Info

The tutorial assumes that Netbeans (version 4.1) and a Java JDK (version 1.5.x) are already installed.

Install Maven

Download the stable version of maven (1.0.2) from http://maven.apache.org/start/download.html.

...

Click "New" to add a new variable.

Environment Variable Menu

After installation, also set the MAVEN_HOME variable to point to the base installation area.

...

Now, you should be able to install the Netbeans support.

Install Mevenide

Download this small autoupdate module.

...

Now go back to Tools -> Update Center. Select "Check the web ..." and the "Mevenide Update Center" box, only. Click next. Now click the double-arrow to move all maven plugins into the righthand box. Click next. Click the "Include" checkbox for each plugin and then the "Always Accept" button. All of the Maven plugins should have the "Include" box selected, now. Click next. Now restart Netbeans.

Test the Installation

Now check whether all plugins were loaded successfully.

Go to Tools -> Options -> IDE Configuration -> System -> Modules -> Maven.

Maven Plugins

All the Maven plugins should have the Enabled box checked.

Set these all to Enabled if they are not already. This may clear up errors that can occur during the installation.

Open Project

If all went well, you should see a small box next to Maven projects that Netbeans can open.

...