You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Installing Maven Support in Netbeans

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

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

First download the following packages.

Install Maven

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

The version of Maven should be 1.0.2. The 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 exe that was downloaded.

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.

Environment Variable Menu

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

Install Mevenide

Download this small autoupdate module. To install, start NetBeans and select the "Update Center Wizard" option from the "Tools" menu. Select the "Install Manually Downloaded Modules (.nbm Files)." On the next page, select "Add..." from the "Modules to Install" panel and navigate to the location of the downloaded file. On the next page, transfer that file from the "Available Updates and New Modules:" panel to the "Include in install:" panel and click on the "Finish" button.

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 be enable.

  • No labels