Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Warning
titleThese instructions are deprecated!

This page is old and deprecated. Please use the current version of Netbeans. The built-in Maven plugin should function fine.

Short Instructions

  1. Download Maven 2. The 2.0.10 release will probably work the best.
  2. Add the Maven 2 bin directory to the PATH variable.
  3. Download Netbeans.
  4. Install Netbeans
  5. Install the Maven Plugin in Netbeans at Tools > Plugins > Available Plugins.
  6. Checkout a project with Versioning > CVS > Checkout.

Long Instructions

Maven 2 Installation

On Linux, an appropriate version of Maven 2 can be installed as follows.

...

Now, the environment needs to be setup so that Netbeans finds can find this external copy of Maven versioninstallation. The Also, the Maven bin directory must be added to the system path.

Setting Up the Linux Environment

...

In your command shell, go to the directory where maven was downloaded and execute this command.

No Format

unzip apache-maven-2.0.10-bin.zip

Then This will add the bin directory to the path on Linux using bash.. (This assumes a bash shell.)

No Format
export M2_HOME=/path/to/apache-maven-2.0.910
export PATH=$M2_HOME/bin:$PATH

It These commands can be placed in the RC file for your shell so that this is these variables are setup automatically when you login.

Setting Up the Windows Environment

Navigate to the maven zip file, right click on it, and select Extract All from the menu.

Open the System menu under Control Panel > System (the icon looks like a computer).
Image Added
Go to the Advanced tab under System and click on Environment Variables.
Image Added

Under the System Variables area, select the Path record and click Edit.
Image Added

Hit the End key to go to the end of the text box.

Now add the Maven 2 bin directory to the Path. The easiest way to do this is by navigating to the bin directory in Explorer and then copying the full path from the address bar into the Path (using Ctrl+c, Ctrl+v).

The path items are separated by semi-colons so make sure to put a semi-colon in front of the new entry.

The default location is:

No Format

;C:\Program Files\Apache Software Foundation\apache-maven-2.0.9\bin

Now select OK, OK, OK to apply.

You can check whether maven is in your path by opening a command prompt window (Ctrl+r, type "cmd" into box) and typing

No Format

mvn -v

You should see something similar to:

No Format

Maven version: 2.0.9
Java version: 1.6.0
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

If the mvn command is not found, check that the Path variable was set correctly.

Maven 2 Plugin

Install the Maven Plugin in Netbeans at Tools > Plugins > Available Plugins.

...

Checkout the lcsim-contrib project from the SLAC CVS by going to Versioning > CVS > Checkout in Netbeans.

The user name "jeremy" should be replaced with your cvs account name, and the password should be replaced with your cvs password.

...