Versions Compared

Key

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

Installing Maven with Netbeans Support

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 is already installed.

Install

...

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

Warning

The version of Maven should be 1.0.2. The 1.1.x series has been found to be buggy. And the 2 release is incompatible with 1.x.

Install Maven by double-clicking on the downloaded file which should be called maven-1.0.2.exe.

If JAVA_HOME is not set, an error will occur.

You can set the path to Java home from the Start -> Settings -> Control Panel -> System menu.

Click on the Advanced tab and then click the Environment Variables button.

Click "New" to add a new variable.

Environment Variable Menu

Image Removed

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

My installation dir is C:\work\maven.

Image Removed

Click on the "New" button under the "System Variables" box.

Copy the value from the Explorer bar into the new variable.

Image Removed

...

Netbeans

...

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.

...

Warning
titleWarning

August 2005: The most recent version of mevenide seems to generate error messages during install about missing cargo library, this can be ignored. After install the Maven J2EE module may not work, but we do not use this module so it can be ignored.

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

To open the cvs projects which you previously checked out, use File -> Open Project, then navigate to your
cvs installation directory.

...