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

Compare with Current View Page History

Version 1 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.

Install Mevenide

Installing 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.

Once these are installed you can open the project folders in NetBeans and build using maven from inside netbeans.

Test the Installation

  • No labels